Author: dmorozov
Date: 2007-06-13 11:20:03 -0400 (Wed, 13 Jun 2007)
New Revision: 1158
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUILib.js
Log:
Fix multiple script inclusion collisions
Modified: trunk/sandbox/scrollable-grid/src/main/javascript/ClientUILib.js
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/javascript/ClientUILib.js 2007-06-13 15:19:25
UTC (rev 1157)
+++ trunk/sandbox/scrollable-grid/src/main/javascript/ClientUILib.js 2007-06-13 15:20:03
UTC (rev 1158)
@@ -3,6 +3,8 @@
// TODO: Copyright (c) 2007, Denis Morozov (dmorozov(a)exadel.com)
// ...
+if(!ClientUILib) {
+
var ClientUILib = {
Version: '1.0.0',
Name: 'ClientUILib',
@@ -209,3 +211,12 @@
layouts: {}
};
+// Some helper functions\
+if(!ClientUILib.isIE){
+ HTMLElement.prototype.click = function() {
+ var evt = this.ownerDocument.createEvent('MouseEvents');
+ evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0,
0, 0, 0, false, false, false, false, 0, null);
+ this.dispatchEvent(evt);
+ }
+}
+};
Show replies by date