File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
var hash = require ( './hash' ) . hash ;
4
- var interpolateSelectors = require ( './interpolateSelectors' ) ;
5
4
6
5
var KEBAB_REGEX = / [ A - Z ] / g;
7
6
var isClient = typeof window === 'object' ;
@@ -20,6 +19,9 @@ exports.create = function (h) {
20
19
hash : function ( obj ) {
21
20
return hash ( renderer . stringify ( obj ) ) ;
22
21
} ,
22
+ selector : function ( parent , selector ) {
23
+ return parent + ' ' + selector ;
24
+ } ,
23
25
} ;
24
26
25
27
var putRaw ;
@@ -36,15 +38,14 @@ exports.create = function (h) {
36
38
}
37
39
38
40
var put = function ( selector , decls ) {
39
- var selectors = selector . split ( ',' ) ;
40
41
var str = '' ;
41
42
var prop , value ;
42
43
43
44
for ( prop in decls ) {
44
45
value = decls [ prop ] ;
45
46
46
47
if ( value instanceof Object ) {
47
- var selectorInterpolated = interpolateSelectors ( selectors , prop ) ;
48
+ var selectorInterpolated = renderer . selector ( selector , prop ) ;
48
49
put ( selectorInterpolated , value ) ;
49
50
} else {
50
51
str += renderer . decl ( prop , value ) ;
You can’t perform that action at this time.
0 commit comments