|
Lines 30-35
Link Here
|
| 30 |
var req = org.eclipse.swt.Request.getInstance(); |
30 |
var req = org.eclipse.swt.Request.getInstance(); |
| 31 |
req.addEventListener( "send", this._onSend, this ); |
31 |
req.addEventListener( "send", this._onSend, this ); |
| 32 |
this.getCaptionBar().setWidth( "100%" ); |
32 |
this.getCaptionBar().setWidth( "100%" ); |
|
|
33 |
// [if] Listen for DOM event instead of qooxdoo event - see bug 294846. |
| 34 |
this.removeEventListener( "mousedown", this._onwindowmousedown ); |
| 35 |
this.__onwindowmousedown |
| 36 |
= qx.lang.Function.bind( this._onwindowmousedown, this ); |
| 33 |
}, |
37 |
}, |
| 34 |
|
38 |
|
| 35 |
statics : { |
39 |
statics : { |
|
Lines 133-138
Link Here
|
| 133 |
this.removeEventListener( "keydown", this._onKeydown ); |
137 |
this.removeEventListener( "keydown", this._onKeydown ); |
| 134 |
var req = org.eclipse.swt.Request.getInstance(); |
138 |
var req = org.eclipse.swt.Request.getInstance(); |
| 135 |
req.removeEventListener( "send", this._onSend, this ); |
139 |
req.removeEventListener( "send", this._onSend, this ); |
|
|
140 |
if( !qx.core.Object.inGlobalDispose() ) { |
| 141 |
qx.html.EventRegistration.removeEventListener( this.getElement(), |
| 142 |
"mousedown", |
| 143 |
this.__onwindowmousedown ); |
| 144 |
} |
| 136 |
this._activateListenerWidgets = null; |
145 |
this._activateListenerWidgets = null; |
| 137 |
}, |
146 |
}, |
| 138 |
|
147 |
|
|
Lines 141-146
Link Here
|
| 141 |
}, |
150 |
}, |
| 142 |
|
151 |
|
| 143 |
members : { |
152 |
members : { |
|
|
153 |
_applyElement : function( value, old ) { |
| 154 |
this.base( arguments, value, old ); |
| 155 |
qx.html.EventRegistration.addEventListener( this.getElement(), |
| 156 |
"mousedown", |
| 157 |
this.__onwindowmousedown ); |
| 158 |
}, |
| 159 |
|
| 144 |
setDefaultButton : function( value ) { |
160 |
setDefaultButton : function( value ) { |
| 145 |
this._defaultButton = value; |
161 |
this._defaultButton = value; |
| 146 |
}, |
162 |
}, |