make $.addStyle return the style

This commit is contained in:
James Campos 2011-06-01 23:47:53 -07:00
parent 21be993ec1
commit 567b7c3ed0
2 changed files with 3 additions and 1 deletions

View File

@ -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]);

View File

@ -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) ->