aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJonathan Duran2012-02-06 13:34:30 -0800
committerJonathan Duran2012-02-06 13:34:30 -0800
commit97d73b6f2e7fd4fbd8316632b5cd7c8692178be6 (patch)
treec7dd9a4ed03141311f61befe49644151fc16facc /js
parenta39bad832722a10f6556f91e94c3301a41f59bd5 (diff)
downloadninja-97d73b6f2e7fd4fbd8316632b5cd7c8692178be6.tar.gz
style controller update for CSS animations
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js')
-rw-r--r--js/controllers/styles-controller.js4
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