- Timestamp:
- 03/11/14 22:45:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/widgets/_ComplexValueMixin.js
r500 r506 15 15 readOnly: false, 16 16 _onChangeActive: false, 17 _onChangeHandle: null, 17 18 constructor: function() { 18 19 this._listenerMap = {}; … … 98 99 _handleChange: function(evt) { 99 100 if ( evt.target !== this.domNode ) { 100 if ( this._onChangeActive && !(this.readOnly || this.disabled) ) { 101 this.emit('change',this.get('value')); 101 if ( this._onChangeActive && 102 !(this.readOnly || this.disabled) ) { 103 if ( this._onChangeHandle ) { 104 this._onChangeHandle.cancel(); 105 } 106 this._onChangeHandle = this.defer(function(){ 107 this._onChangeHandle = null; 108 on.emit(this.domNode,'change',{ 109 target: this.domNode, 110 value: this.get('value'), 111 bubbles: true, 112 cancellable: true 113 }); 114 }); 102 115 } 103 116 if ( evt ) { event.stop(evt); } 104 117 return false; 118 } else { 119 return evt; 105 120 } 106 return true;107 121 }, 108 122 _handleSubmit: function(evt) {
Note: See TracChangeset
for help on using the changeset viewer.