cssom-papandreou
Advanced tools
Comparing version 0.2.2-patch1 to 0.2.2-patch2
@@ -31,3 +31,3 @@ //.CommonJS | ||
} | ||
return "@-webkit-keyframes " + this.name + " { \n" + cssTexts.join("\n") + "\n}"; | ||
return "@" + (this.vendorPrefix || '') + "keyframes " + this.name + " { \n" + cssTexts.join("\n") + "\n}"; | ||
}); | ||
@@ -34,0 +34,0 @@ |
@@ -141,6 +141,22 @@ //.CommonJS | ||
keyframesRule.__starts = i; | ||
keyframesRule.vendorPrefix = '-webkit-'; | ||
i += "-webkit-keyframes".length; | ||
buffer = ""; | ||
break; | ||
} else if (state === "selector") { | ||
} else if (token.indexOf("@-moz-keyframes", i) == i) { | ||
state = "keyframesRule-begin"; | ||
keyframesRule = new CSSOM.CSSKeyframesRule; | ||
keyframesRule.__starts = i; | ||
keyframesRule.vendorPrefix = '-moz-'; | ||
i += "-moz-keyframes".length; | ||
buffer = ""; | ||
break; | ||
} else if (token.indexOf("@keyframes", i) == i) { | ||
state = "keyframesRule-begin"; | ||
keyframesRule = new CSSOM.CSSKeyframesRule; | ||
keyframesRule.__starts = i; | ||
i += "keyframes".length; | ||
buffer = ""; | ||
break; | ||
} else if (state == "selector") { | ||
state = "atRule"; | ||
@@ -147,0 +163,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["CSS", "CSSOM", "parser", "styleSheet"], | ||
"version": "0.2.2-patch1", | ||
"version": "0.2.2-patch2", | ||
"homepage": "https://github.com/NV/CSSOM", | ||
@@ -30,3 +30,6 @@ "author": "Nikita Vasilyev <me@elv1s.ru>", | ||
} | ||
] | ||
], | ||
"scripts": { | ||
"prepublish": "jake lib/index.js" | ||
} | ||
} |
107491
36
3879