diff options
author | Valerio Virgillito | 2012-02-09 13:35:15 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-09 13:35:15 -0800 |
commit | cebd27bd649d01c8b8713651df3878da14b5e9a8 (patch) | |
tree | 3d20d838f2f6892a07cf16c4c959e234f96ee60b /js/controllers | |
parent | 666ae3e9119410cbf7fa974274d95336aaff091c (diff) | |
parent | 2092acf520e3f346f15e42c76c2f616e7d094c97 (diff) | |
download | ninja-cebd27bd649d01c8b8713651df3878da14b5e9a8.tar.gz |
Merge branch 'Timeline' of https://github.com/imix23ways/ninja-internal into feature-branch
Conflicts:
js/helper-classes/RDGE/Materials/FlatMaterial.js
Signed-off-by: Valerio Virgillito <valerio@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 011caec5..44e0e798 100644 --- a/js/controllers/styles-controller.js +++ b/js/controllers/styles-controller.js | |||
@@ -181,6 +181,10 @@ var stylesController = exports.StylesController = Montage.create(Component, { | |||
181 | rule = stylesheet.rules[index]; | 181 | rule = stylesheet.rules[index]; |
182 | 182 | ||
183 | ///// attach specificity to rule object | 183 | ///// attach specificity to rule object |
184 | // if rule is css keyframes, return rule and don't attach specificity | ||
185 | if (rule instanceof WebKitCSSKeyframesRule) { | ||
186 | return rule; | ||
187 | } | ||
184 | rule[this.CONST.SPECIFICITY_KEY] = this.getSpecificity(rule.selectorText); | 188 | rule[this.CONST.SPECIFICITY_KEY] = this.getSpecificity(rule.selectorText); |
185 | 189 | ||
186 | ///// return the rule we just inserted | 190 | ///// return the rule we just inserted |