Changeset 1382

Show
Ignore:
Timestamp:
05/22/08 01:34:09 (4 months ago)
Author:
cederberg@gmail.com
Message:

Fixed [1373] and #301 again. Empty strings caused problems in FF for Mac.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mochikit/trunk/MochiKit/Style.js

    r1373 r1382  
    150150            case 'cssFloat': 
    151151            case 'styleFloat': 
    152                 if (elem.style["float"]) { 
     152                if (typeof(elem.style["float"]) != "undefined") { 
    153153                    elem.style["float"] = style[name]; 
    154                 } else if (elem.style.cssFloat) { 
     154                } else if (typeof(elem.style.cssFloat) != "undefined") { 
    155155                    elem.style.cssFloat = style[name]; 
    156156                } else { 
  • mochikit/trunk/packed/MochiKit/MochiKit.js

    r1381 r1382  
    39353935case "cssFloat": 
    39363936case "styleFloat": 
    3937 if(elem.style["float"]){ 
     3937if(typeof (elem.style["float"])!="undefined"){ 
    39383938elem.style["float"]=_419[name]; 
    39393939}else{ 
    3940 if(elem.style.cssFloat){ 
     3940if(typeof (elem.style.cssFloat)!="undefined"){ 
    39413941elem.style.cssFloat=_419[name]; 
    39423942}else{