Ticket #4205: html.patch
| File html.patch, 0.7 kB (added by nathan, 10 months ago) |
|---|
-
dojo/_base/html.js
1084 1084 node = dojo.byId(node); 1085 1085 name = _fixAttrName(name); 1086 1086 if(args == 3){ 1087 if(dojo.isFunction(value)){ 1088 try{ 1089 delete node[name]; // preserve clobbering behavior 1090 }catch(e){} 1091 // ensure that event objects are normalized, etc. 1092 dojo.connect(node, name, value); 1093 }else if(typeof value == "boolean"){ // e.g. onsubmit, disabled 1087 if(dojo.isFunction(value) || typeof value == "boolean"){ // e.g. onsubmit, disabled 1094 1088 // if a function, we should normalize the event object here!!! 1095 1089 node[name] = value; 1096 1090 }else{