File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,7 @@ Compiler.prototype.compile = function(node){
36
36
*/
37
37
38
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 ) ;
39
+ return this [ node . type ] ( node ) ;
47
40
} ;
48
41
49
42
/**
Original file line number Diff line number Diff line change 7
7
"devDependencies" : {
8
8
"mocha" : " *" ,
9
9
"should" : " *" ,
10
- "css-parse" : " 1.3 .0"
10
+ "css-parse" : " 1.4 .0"
11
11
},
12
12
"main" : " index"
13
13
}
You can’t perform that action at this time.
0 commit comments