[Dojo-checkins] r925 - src/webui
dojo-checkins at dojotoolkit.org
dojo-checkins at dojotoolkit.org
Wed Jul 20 22:53:44 PDT 2005
Author: alex
Date: Wed Jul 20 22:53:43 2005
New Revision: 925
Modified:
src/webui/DomWidget.js
Log:
makes widget construction faster. Depending on the widget, potentially a LOT faster.
Modified: src/webui/DomWidget.js
==============================================================================
--- src/webui/DomWidget.js (original)
+++ src/webui/DomWidget.js Wed Jul 20 22:53:43 2005
@@ -155,16 +155,16 @@
}
}
}();
- dojo.event.connect(baseNode, tevt.toLowerCase(), tf);
+ // dojo.event.connect(baseNode, tevt.toLowerCase(), tf);
+ dojo.event.browser.addListener(baseNode, tevt.substr(2), tf);
}
}
for(var y=0; y<events.length; y++){
//alert(events[x]);
var evtVal = baseNode.getAttribute(events[y]);
- if(evtVal){
+ if((evtVal)&&(evtVal.length)){
var thisFunc = null;
- if((!evtVal)||(!evtVal.length)){ continue; }
var domEvt = events[y].substr(4).toLowerCase(); // clober the "dojo" prefix
thisFunc = dojo.text.trim(evtVal);
var tf = function(){
More information about the Dojo-checkins
mailing list