|
Lines 67-72
Link Here
|
| 67 |
this.addEventListener( "changeBackgroundColor", |
67 |
this.addEventListener( "changeBackgroundColor", |
| 68 |
this._onChangeBackgoundColor, |
68 |
this._onChangeBackgoundColor, |
| 69 |
this ); |
69 |
this ); |
|
|
70 |
this.addEventListener( "changeVisibility", this._onChangeVisibility, this ); |
| 70 |
// Mouse events |
71 |
// Mouse events |
| 71 |
this.addEventListener( "mousedown", this._onMouseDown, this ); |
72 |
this.addEventListener( "mousedown", this._onMouseDown, this ); |
| 72 |
this.addEventListener( "mouseup", this._onMouseUp, this ); |
73 |
this.addEventListener( "mouseup", this._onMouseUp, this ); |
|
Lines 96-101
Link Here
|
| 96 |
this.removeEventListener( "changeBackgroundColor", |
97 |
this.removeEventListener( "changeBackgroundColor", |
| 97 |
this._onChangeBackgoundColor, |
98 |
this._onChangeBackgoundColor, |
| 98 |
this ); |
99 |
this ); |
|
|
100 |
this.removeEventListener( "changeVisibility", this._onChangeVisibility, this ); |
| 99 |
this.removeEventListener( "mousedown", this._onMouseDown, this ); |
101 |
this.removeEventListener( "mousedown", this._onMouseDown, this ); |
| 100 |
this.removeEventListener( "mouseup", this._onMouseUp, this ); |
102 |
this.removeEventListener( "mouseup", this._onMouseUp, this ); |
| 101 |
this.removeEventListener( "click", this._onMouseClick, this ); |
103 |
this.removeEventListener( "click", this._onMouseClick, this ); |
|
Lines 182-187
Link Here
|
| 182 |
this._list.setBackgroundColor( value ); |
184 |
this._list.setBackgroundColor( value ); |
| 183 |
}, |
185 |
}, |
| 184 |
|
186 |
|
|
|
187 |
_onChangeVisibility : function( evt ) { |
| 188 |
var value = evt.getValue(); |
| 189 |
this._field.setVisibility( value ); |
| 190 |
this._button.setVisibility( value ); |
| 191 |
if( !value && this._dropped ) { |
| 192 |
this._toggleListVisibility(); |
| 193 |
} |
| 194 |
}, |
| 195 |
|
| 185 |
_applyCursor : function( value, old ) { |
196 |
_applyCursor : function( value, old ) { |
| 186 |
this.base( arguments, value, old ); |
197 |
this.base( arguments, value, old ); |
| 187 |
if( value ) { |
198 |
if( value ) { |