Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix for issue 149

currentStyle is Async in IE, and/or may be null if an element is created using createElement.  Either way, PIE needs to make sure currentStyle is present before accessing its methods.

(see http://stackoverflow.com/questions/3722736/weird-ie-behavior-currentstyle-returns-null)
  • Loading branch information...
commit 91e91177cff7947ff6533907c34e5b9d1b85161f 1 parent 34154b1
gruber76 authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  sources/StyleInfoBase.js
2  sources/StyleInfoBase.js
@@ -51,7 +51,7 @@ PIE.StyleInfoBase = {
51 51 var el = this.targetElement,
52 52 ctor = this.constructor,
53 53 s = el.style,
54   - cs = el.currentStyle,
  54 + cs = el.currentStyle || {getAttribute:{}},
55 55 cssProp = this.cssProperty,
56 56 styleProp = this.styleProperty,
57 57 prefixedCssProp = ctor._prefixedCssProp || ( ctor._prefixedCssProp = PIE.CSS_PREFIX + cssProp ),

0 comments on commit 91e9117

Please sign in to comment.
Something went wrong with that request. Please try again.