From dcba53300190d177bdcc9483df6cc0a95d5ba7cb Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 18 Jul 2011 16:14:30 -0700 Subject: [PATCH] use $.append --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 0d5f7b913..cf3699640 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2586,7 +2586,7 @@ _ref2 = filesize.textContent.match(/(\d+)x/), _ = _ref2[0], max = _ref2[1]; img.style.maxWidth = "-moz-calc(" + max + "px)"; } - return a.appendChild(img); + return $.append(a, img); }, dialog: function() { var controls, delform, imageType, option, select, _i, _len, _ref2; diff --git a/script.coffee b/script.coffee index 85bcab54b..c07607287 100644 --- a/script.coffee +++ b/script.coffee @@ -1941,7 +1941,7 @@ imgExpand = filesize = $ 'span.filesize', a.parentNode [_, max] = filesize.textContent.match /(\d+)x/ img.style.maxWidth = "-moz-calc(#{max}px)" - a.appendChild img + $.append a, img dialog: -> controls = $.el 'div',