Update of /cvsroot/qooxdoo/qooxdoo/source/script/events
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22640/source/script/events
Modified Files:
Tag: renderer
QxDomEvent.js
Log Message:
Minor cleanup
Index: QxDomEvent.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/events/Attic/QxDomEvent.js,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -d -r1.1.2.5 -r1.1.2.6
--- QxDomEvent.js 16 Jan 2006 16:11:55 -0000 1.1.2.5
+++ QxDomEvent.js 28 Jan 2006 17:34:09 -0000 1.1.2.6
@@ -29,13 +29,13 @@
************************************************************************ */
-function QxDomEvent(vType, vDomEvent, vDomTarget, vTarget, vOriginalTarget)
+function QxDomEvent(vType, vDomEvent, vDomTarget, vTarget, vOriginalTarget)
{
QxEvent.call(this, vType);
-
+
this.setDomEvent(vDomEvent);
this.setDomTarget(vDomTarget);
-
+
this.setTarget(vTarget);
this.setOriginalTarget(vOriginalTarget);
};
@@ -59,16 +59,16 @@
---------------------------------------------------------------------------
*/
-proto.getCtrlKey = function() {
- return this.getDomEvent().ctrlKey;
+proto.getCtrlKey = function() {
+ return this.getDomEvent().ctrlKey;
};
-proto.getShiftKey = function() {
- return this.getDomEvent().shiftKey;
+proto.getShiftKey = function() {
+ return this.getDomEvent().shiftKey;
};
-proto.getAltKey = function() {
- return this.getDomEvent().altKey;
+proto.getAltKey = function() {
+ return this.getDomEvent().altKey;
};
@@ -90,9 +90,9 @@
if (!vValue) {
return this.error("It is not possible to set preventDefault to false if it was true before!", "setDefaultPrevented");
};
-
- this.getDomEvent().returnValue = false;
-
+
+ this.getDomEvent().returnValue = false;
+
QxEvent.prototype.setDefaultPrevented.call(this, vValue);
};
}
@@ -103,10 +103,10 @@
if (!vValue) {
return this.error("It is not possible to set preventDefault to false if it was true before!", "setDefaultPrevented");
};
-
+
this.getDomEvent().preventDefault();
- this.getDomEvent().returnValue = false;
-
+ this.getDomEvent().returnValue = false;
+
QxEvent.prototype.setDefaultPrevented.call(this, vValue);
};
};
@@ -128,10 +128,9 @@
if (this.getDisposed()) {
return;
};
-
+
this._valueDomEvent = null;
this._valueDomEventTarget = null;
- this._valueDomEventOriginalTarget = null;
-
+
return QxEvent.prototype.dispose.call(this);
};
|