Changeset 8313

Show
Ignore:
Timestamp:
04/26/07 23:53:44 (21 months ago)
Author:
bill
Message:

Filed bug #2855 that dojo.style("cssText") doesn't work on opera;
removed comments from code.

(Refs #2855)

Location:
dijit/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/base/TemplatedWidget.js

    r8272 r8313  
    9999 
    100100                        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); 
    102102                                node.className += " " + this.srcNodeRef.className; 
    103103                        } 
     
    295295 
    296296        var tn = dojo.doc.createElement("div"); 
    297         // dojo.style(tn, "display", "none"); 
    298         dojo.style(tn, "visibility", "hidden"); 
     297        tn.style.visibility="hidden"; 
    299298        dojo.body().appendChild(tn); 
    300299        var tableType = "none"; 
     
    324323        } 
    325324 
    326         /* this doesn't make much sense, I'm assuming it just meant trim() so wrap was replaced with trim 
    327         if(wrap){ 
    328                 var ret = []; 
    329                 // start hack 
    330                 var fc = tn.firstChild; 
    331                 ret[0] = ((fc.nodeValue == " ")||(fc.nodeValue == "\t")) ? fc.nextSibling : fc; 
    332                 // end hack 
    333                 // dojo.style(tn, "display", "none"); 
    334                 dojo.body().removeChild(tn); 
    335                 return ret; 
    336         } 
    337         */ 
    338325        var nodes = []; 
    339326        for(var x=0; x<parent.childNodes.length; x++){ 
    340327                nodes.push(parent.childNodes[x].cloneNode(true)); 
    341328        } 
    342         dojo.style(tn, "display", "none"); // FIXME: why do we do this? 
    343329//PORT  dojo.html.destroyNode(tn); FIXME: need code to prevent leaks and such 
    344330        dojo.body().removeChild(tn); 
  • dijit/trunk/form/_Spinner.js

    r8279 r8313  
    8686                        // textbox and domNode get the same style but the css separates the 2 using !important 
    8787                        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); 
    8989                                node.className += " " + this.srcNodeRef.className; 
    9090                        }