From 567b7c3ed0bdcef10d809453887f6f01be7690a0 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 1 Jun 2011 23:47:53 -0700 Subject: [PATCH] make $.addStyle return the style --- 4chan_x.user.js | 3 ++- script.coffee | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 55908be30..21e6d015d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -310,7 +310,8 @@ style = document.createElement('style'); style.type = 'text/css'; style.textContent = css; - return $.append(d.head, style); + $.append(d.head, style); + return style; }, config: function(name) { return $.getValue(name, _config[name]); diff --git a/script.coffee b/script.coffee index fff1ece6f..11176b497 100644 --- a/script.coffee +++ b/script.coffee @@ -200,6 +200,7 @@ $.extend $, style.type = 'text/css' style.textContent = css $.append d.head, style + style config: (name) -> $.getValue name, _config[name] zeroPad: (n) ->