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 3c00f86 commit b9865ccCopy full SHA for b9865cc
index.js
@@ -36,14 +36,7 @@ Compiler.prototype.compile = function(node){
36
*/
37
38
Compiler.prototype.visit = function(node){
39
- if ('page' == node.type) return this.page(node);
40
- if (node.document) return this.document(node);
41
- if (node.comment) return this.comment(node);
42
- if (node.charset) return this.charset(node);
43
- if (node.keyframes) return this.keyframes(node);
44
- if (node.media) return this.media(node);
45
- if (node.import) return this.import(node);
46
- return this.rule(node);
+ return this[node.type](node);
47
};
48
49
/**
package.json
@@ -7,7 +7,7 @@
7
"devDependencies": {
8
"mocha": "*",
9
"should": "*",
10
- "css-parse": "1.3.0"
+ "css-parse": "1.4.0"
11
},
12
"main": "index"
13
}
0 commit comments