@@ -74,18 +74,31 @@ Object {
74
74
75
75
///@private
76
76
function registerStyle (style, tag) {
77
- var rules = ' position: absolute; visibility: inherit; opacity: 1.0;'
78
- rules += ' border-style: solid; border-width: 0px; border-radius: 0px; box-sizing: border-box; border-color: rgba(0,0,0,1);'
79
- rules += ' white-space: nowrap; transform: none;'
80
- rules += ' left: 0px; top: 0px; width: 0px; height: 0px;'
81
- rules += ' font-family: ' + $manifest$style$font$family + ' ; '
82
- rules += ' line-height: ' + $manifest$style$font$lineHeight + ' ; '
83
- rules += ' font-weight: ' + $manifest$style$font$weight + ' ; '
84
- rules += ' pointer-events: inherit; touch-action: inherit; '
77
+ var rules = {
78
+ ' position' : ' absolute' ,
79
+ ' visibility' : ' inherit' ,
80
+ ' opacity' : 1.0 ,
81
+ ' border-style' : ' solid' ,
82
+ ' border-width' : ' 0px' ,
83
+ ' border-radius' : ' 0px' ,
84
+ ' box-sizing' : ' border-box' ,
85
+ ' border-color' : ' rgba(0,0,0,1)' ,
86
+ ' white-space' : ' nowrap' ,
87
+ ' transform' : ' none' ,
88
+ ' left' : ' 0px' ,
89
+ ' top' : ' 0px' ,
90
+ ' width' : ' 0px' ,
91
+ ' height' : ' 0px' ,
92
+ ' font-family' : $manifest$style$font$family,
93
+ ' line-height' : $manifest$style$font$lineHeight,
94
+ ' font-weight' : $manifest$style$font$weight,
95
+ ' pointer-events' : ' inherit' ,
96
+ ' touch-action' : ' inherit'
97
+ }
85
98
if ($manifest$style$font$pixelSize)
86
- rules += ' font-size: ' + $manifest$style$font$pixelSize + ' px; '
99
+ rules[ ' font-size' ] = $manifest$style$font$pixelSize + ' px'
87
100
else if ($manifest$style$font$pointSize)
88
- rules += ' font-size: ' + $manifest$style$font$pointSize + ' pt; '
101
+ rules[ ' font-size' ] = $manifest$style$font$pointSize + ' pt'
89
102
style .addRule (tag, rules)
90
103
}
91
104
0 commit comments