Skip to content
Browse files

Fix for IE.

 * Ensure rule.propertyInfo is correctly set in style-properties.html.  It was checking a wrong attribute: rule.properties instead of rule.propertyInfo before calling decorateRule().

 * Fix a condition check in custom-style.html when propertyInfo is null or undefined.
  • Loading branch information...
1 parent c0123cf commit 1f3b4eaeb637e149f36b72b7272db0b48a5dd5e0 @achimnol achimnol committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/lib/custom-style.html
  2. +2 −2 src/lib/style-properties.html
View
2 src/lib/custom-style.html
@@ -107,7 +107,7 @@
rule.selector = 'body';
}
var css = rule.cssText = rule.parsedCssText;
- if (rule.propertyInfo.cssText) {
+ if (rule.propertyInfo && rule.propertyInfo.cssText) {
// TODO(sorvell): factor better
// remove property assignments so next function isn't confused
css = css.replace(propertyUtils.rx.VAR_ASSIGN, '');
View
4 src/lib/style-properties.html
@@ -165,7 +165,7 @@
applyProperties: function(rule, props) {
var output = '';
// dynamically added sheets may not be decorated so ensure they are.
- if (!rule.properties) {
+ if (!rule.propertyInfo) {
this.decorateRule(rule);
}
if (rule.propertyInfo.cssText) {
@@ -349,4 +349,4 @@
})();
-</script>
+</script>

0 comments on commit 1f3b4ea

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