Skip to content

Commit a93cae1

Browse files
committed
Allow CSSOM.CSSStyleSheet.prototype.insertRule to insert keyframe rules.
Fixes #40
1 parent 92abe0a commit a93cae1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/CSSStyleSheet.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//.CommonJS
22
var CSSOM = {
3+
parse: require("./parse"),
34
StyleSheet: require("./StyleSheet").StyleSheet,
45
CSSStyleRule: require("./CSSStyleRule").CSSStyleRule
56
};
@@ -40,7 +41,7 @@ CSSOM.CSSStyleSheet.prototype.insertRule = function(rule, index) {
4041
if (index < 0 || index > this.cssRules.length) {
4142
throw new RangeError("INDEX_SIZE_ERR");
4243
}
43-
this.cssRules.splice(index, 0, CSSOM.CSSStyleRule.parse(rule));
44+
this.cssRules.splice(index, 0, CSSOM.parse(rule));
4445
return index;
4546
};
4647

0 commit comments

Comments
 (0)