[Dojo-checkins] [dojo] #5142: dojo.style, undefined or null error

dojo trac at dojotoolkit.org
Wed Nov 14 09:04:47 UTC 2007


#5142: dojo.style, undefined or null error
---------------------+------------------------------------------------------
 Reporter:  guest    |       Owner:  anonymous      
     Type:  defect   |      Status:  new            
 Priority:  normal   |   Milestone:                 
Component:  General  |     Version:  1.0            
 Severity:  normal   |    Keywords:  dojo.style null
---------------------+------------------------------------------------------
 {{{
 var gcs, dv = document.defaultView;
 if(dojo.isSafari){
         ......
 }else if(dojo.isIE){
         gcs = function(node){
                 return node.currentStyle || {};
 //here "||{}" should added ,or sometimes null is returned
         };
 }else{
         gcs = function(node){
                 return dv.getComputedStyle(node, null) || {};
 //here "||{}" should added ,or sometimes null is returned
         };
 }
 dojo.getComputedStyle = gcs;

 }}}

-- 
Ticket URL: <http://trac.dojotoolkit.org/ticket/5142>
dojo <http://dojotoolkit.org/>
The Dojo UI Toolkit


More information about the Dojo-checkins mailing list