Ignore:
Timestamp:
03/13/14 22:21:55 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Another shot at getting change events right for _ComplexValueMixin. Our previous approach made it impossible to detect if a change was cause during startup. Now we work purely with widget 'change' events. Children are connected during postCreate, addChild. If you add children otherwise you need to call connectChildsChanges yourself. Also to make sure events are generated, use _setValueInternal if you really need to set the value attribute yourself.
  • Removed unused widget.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/model/widgets/SurveyRenderWidget.js

    r511 r513  
    3838                lang.mixin(newValue,widget.get('value'));
    3939            },this);
    40             this.value = newValue;
    41             return this.value;
     40            return newValue;
    4241        },
    43         _setValueAttr: function(value) {
     42        _setValueAttr: function(value,priorityChange) {
     43            this._setValueInternal(value,priorityChange);
    4444            array.forEach(this._getDescendantFormWidgets(),function(widget){
    4545                widget.set('value',value);
    4646            },this);
    47             this.value = value;
    4847        }
    4948    });
Note: See TracChangeset for help on using the changeset viewer.