Changeset 8313
- Timestamp:
- 04/26/07 23:53:44 (21 months ago)
- Location:
- dijit/trunk
- Files:
-
- 2 modified
-
base/TemplatedWidget.js (modified) (3 diffs)
-
form/_Spinner.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/base/TemplatedWidget.js
r8272 r8313 99 99 100 100 if(this.srcNodeRef){ 101 dojo.style(node, "cssText", this.srcNodeRef.style.cssText); // will fail on Opera?101 dojo.style(node, "cssText", this.srcNodeRef.style.cssText); 102 102 node.className += " " + this.srcNodeRef.className; 103 103 } … … 295 295 296 296 var tn = dojo.doc.createElement("div"); 297 // dojo.style(tn, "display", "none"); 298 dojo.style(tn, "visibility", "hidden"); 297 tn.style.visibility="hidden"; 299 298 dojo.body().appendChild(tn); 300 299 var tableType = "none"; … … 324 323 } 325 324 326 /* this doesn't make much sense, I'm assuming it just meant trim() so wrap was replaced with trim327 if(wrap){328 var ret = [];329 // start hack330 var fc = tn.firstChild;331 ret[0] = ((fc.nodeValue == " ")||(fc.nodeValue == "\t")) ? fc.nextSibling : fc;332 // end hack333 // dojo.style(tn, "display", "none");334 dojo.body().removeChild(tn);335 return ret;336 }337 */338 325 var nodes = []; 339 326 for(var x=0; x<parent.childNodes.length; x++){ 340 327 nodes.push(parent.childNodes[x].cloneNode(true)); 341 328 } 342 dojo.style(tn, "display", "none"); // FIXME: why do we do this?343 329 //PORT dojo.html.destroyNode(tn); FIXME: need code to prevent leaks and such 344 330 dojo.body().removeChild(tn); -
dijit/trunk/form/_Spinner.js
r8279 r8313 86 86 // textbox and domNode get the same style but the css separates the 2 using !important 87 87 if(this.srcNodeRef){ 88 dojo.style(node, "cssText", this.srcNodeRef.style.cssText); // will fail on Opera?88 dojo.style(node, "cssText", this.srcNodeRef.style.cssText); 89 89 node.className += " " + this.srcNodeRef.className; 90 90 }