Ignore:
Timestamp:
03/09/14 22:03:19 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Removed all Coffeescript from codebase (build process is still there).
  • Nicer message on failed login.
  • Own all event subscriptions from widgets.
  • Update objects in _ObjectPage with invalid info too, or our refresh will overwrite what user did.
Location:
Dev/trunk/src/client/qed-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client

    • Property svn:ignore
      •  

        old new  
        11
        2 ### begin grunt-svn-ignore managed ignores
        3 ### edits will be overwritten when grunt svn-ignore is run
        4 session.js
        5 ### end grunt-svn-ignore managed ignores
  • Dev/trunk/src/client/qed-client/pages/question.js

    r493 r494  
    1919            if ( this._started ) { return; }
    2020            this.inherited(arguments);
    21             this.propertiesForm.on('change',lang.hitch(this,'_handlePropertiesChange'));
    22             this.contentList.on('change',lang.hitch(this,'_handleContentChange'));
     21            this.own(this.propertiesForm.on('change',lang.hitch(this,'_handlePropertiesChange')));
     22            this.own(this.contentList.on('change',lang.hitch(this,'_handleContentChange')));
    2323            this._load();
    2424        },
     
    4040        _updateObject: function() {
    4141            var pValid = this.propertiesForm.validate();
    42             if ( pValid ) {
    43                 lang.mixin(this.object,this.propertiesForm.get('value'));
    44             }
     42            lang.mixin(this.object,this.propertiesForm.get('value'));
    4543            var cValid = this.contentList.validate();
    46             if ( cValid ) {
    47                 this.object.content = this.contentList.get('value');
    48             }
     44            this.object.content = this.contentList.get('value');
    4945            this._isValid = pValid && cValid;
    5046            return this._isValid;
Note: See TracChangeset for help on using the changeset viewer.