make $.addStyle return the style
This commit is contained in:
parent
21be993ec1
commit
567b7c3ed0
@ -310,7 +310,8 @@
|
|||||||
style = document.createElement('style');
|
style = document.createElement('style');
|
||||||
style.type = 'text/css';
|
style.type = 'text/css';
|
||||||
style.textContent = css;
|
style.textContent = css;
|
||||||
return $.append(d.head, style);
|
$.append(d.head, style);
|
||||||
|
return style;
|
||||||
},
|
},
|
||||||
config: function(name) {
|
config: function(name) {
|
||||||
return $.getValue(name, _config[name]);
|
return $.getValue(name, _config[name]);
|
||||||
|
|||||||
@ -200,6 +200,7 @@ $.extend $,
|
|||||||
style.type = 'text/css'
|
style.type = 'text/css'
|
||||||
style.textContent = css
|
style.textContent = css
|
||||||
$.append d.head, style
|
$.append d.head, style
|
||||||
|
style
|
||||||
config: (name) ->
|
config: (name) ->
|
||||||
$.getValue name, _config[name]
|
$.getValue name, _config[name]
|
||||||
zeroPad: (n) ->
|
zeroPad: (n) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user