[Qooxdoo-commit] qooxdoo/source/script/gui QxNativeWindow.js,1.1.2.12,1.1.2.13
Brought to you by:
ecker,
martinwittemann
|
From: Sebastian W. <wp...@us...> - 2006-01-19 14:47:04
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17112/source/script/gui Modified Files: Tag: renderer QxNativeWindow.js Log Message: Minor fixes and enhancements for QxNativeWindow Index: QxNativeWindow.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxNativeWindow.js,v retrieving revision 1.1.2.12 retrieving revision 1.1.2.13 diff -C2 -d -r1.1.2.12 -r1.1.2.13 *** QxNativeWindow.js 17 Jan 2006 16:14:58 -0000 1.1.2.12 --- QxNativeWindow.js 19 Jan 2006 14:46:55 -0000 1.1.2.13 *************** *** 203,207 **** proto._applyPosition = function() { ! if (this._window && !this._window.closed) { this._window.moveTo(this.getLeft(), this.getTop()); }; --- 203,207 ---- proto._applyPosition = function() { ! if (this._window && !this.isClosed()) { this._window.moveTo(this.getLeft(), this.getTop()); }; *************** *** 259,263 **** proto._modifySource = function(propValue, propOldValue, propName) { ! if(this._window && this._window.closed == false) { this._window.location.replace(QxUtil.isValidString(propValue) ? propValue : ("javascript:/" + "/")); }; --- 259,263 ---- proto._modifySource = function(propValue, propOldValue, propName) { ! if(this._window && this.isClosed() == false) { this._window.location.replace(QxUtil.isValidString(propValue) ? propValue : ("javascript:/" + "/")); }; *************** *** 277,281 **** proto.getName = function() { ! if (this._window && !this._window.closed) { try --- 277,281 ---- proto.getName = function() { ! if (this._window && !this.isClosed()) { try *************** *** 332,335 **** --- 332,350 ---- }; + proto.isClosed = function() + { + var vClosed = true; + + try + { + if (this._window) { + vClosed = this._window.closed; + }; + } + catch(ex) {}; + + return vClosed; + }; + proto.close = function() { *************** *** 485,489 **** // focus window if opened ! if (this._window && !this._window.closed) { this.focus(); }; --- 500,504 ---- // focus window if opened ! if (this._window && !this.isClosed()) { this.focus(); }; *************** *** 530,534 **** try { ! if (QxUtil.isValidNumber(this._readyState) && this._isOpened && (!this._window || (this._window && this._window.closed != false))) { if (this.getModal()) { --- 545,549 ---- try { ! if (QxUtil.isValidNumber(this._readyState) && this._isOpened && (!this._window || (this._window && this.isClosed() != false))) { if (this.getModal()) { *************** *** 813,817 **** if (this._window) { ! if (!this._window.closed) { QxDom.removeEventListener(this._window, "load", this.__onload); --- 828,832 ---- if (this._window) { ! if (!this.isClosed()) { QxDom.removeEventListener(this._window, "load", this.__onload); |