We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbab063 commit 7f3c726Copy full SHA for 7f3c726
stylebot/libs/jscsspimporter.js
@@ -7,6 +7,7 @@ function JSCSSPImporter() {
7
this.AT_RULE_PREFIX = "at";
8
this.COMMENT_PREFIX = "comment";
9
this.AT_IMPORT_RULE_TYPE = "@import";
10
+ this.commentIndex = 0;
11
}
12
13
JSCSSPImporter.prototype = {
@@ -64,9 +65,10 @@ JSCSSPImporter.prototype = {
64
65
},
66
67
importComment: function(rule, parent) {
- var selector = this.COMMENT_PREFIX + rule.currentLine;
68
+ var selector = this.COMMENT_PREFIX + this.commentIndex;
69
parent[selector] = new Object();
70
parent[selector][this.COMMENT_PREFIX] = rule.cssText();
71
+ this.commentIndex++;
72
73
74
importStyleRule: function(rule, parent) {
0 commit comments