diff options
author | Jonathan Duran | 2012-02-06 13:34:30 -0800 |
---|---|---|
committer | Jonathan Duran | 2012-02-06 13:34:30 -0800 |
commit | 97d73b6f2e7fd4fbd8316632b5cd7c8692178be6 (patch) | |
tree | c7dd9a4ed03141311f61befe49644151fc16facc /js/controllers | |
parent | a39bad832722a10f6556f91e94c3301a41f59bd5 (diff) | |
download | ninja-97d73b6f2e7fd4fbd8316632b5cd7c8692178be6.tar.gz |
style controller update for CSS animations
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/controllers')
-rw-r--r-- | js/controllers/styles-controller.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js index afd298c9..51b81204 100644 --- a/js/controllers/styles-controller.js +++ b/js/controllers/styles-controller.js | |||
@@ -179,6 +179,10 @@ var stylesController = exports.StylesController = Montage.create(Component, { | |||
179 | rule = stylesheet.rules[index]; | 179 | rule = stylesheet.rules[index]; |
180 | 180 | ||
181 | ///// attach specificity to rule object | 181 | ///// attach specificity to rule object |
182 | // if rule is css keyframes, return rule and don't attach specificity | ||
183 | if (rule instanceof WebKitCSSKeyframesRule) { | ||
184 | return rule; | ||
185 | } | ||
182 | rule[this.CONST.SPECIFICITY_KEY] = this.getSpecificity(rule.selectorText); | 186 | rule[this.CONST.SPECIFICITY_KEY] = this.getSpecificity(rule.selectorText); |
183 | 187 | ||
184 | ///// return the rule we just inserted | 188 | ///// return the rule we just inserted |