From d70c47cd6e57b79bb9d094036e52edb9d947180a Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 20 Jul 2011 13:26:08 -0700 Subject: [PATCH] don't need style.className anymore --- 4chan_x.user.js | 3 +-- script.coffee | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 72ceb39d7..6068010db 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2500,8 +2500,7 @@ g.callbacks.push(imgExpand.node); imgExpand.dialog(); $.bind(window, 'resize', imgExpand.resize); - imgExpand.style = $.addStyle("body.fitheight img[md5] + img { max-height: " + d.body.clientHeight + "px }"); - return imgExpand.style.className = 'height'; + return imgExpand.style = $.addStyle("body.fitheight img[md5] + img { max-height: " + d.body.clientHeight + "px }"); }, node: function(root) { var a, thumb; diff --git a/script.coffee b/script.coffee index 6f9312029..3d271b86c 100644 --- a/script.coffee +++ b/script.coffee @@ -1882,7 +1882,6 @@ imgExpand = imgExpand.dialog() $.bind window, 'resize', imgExpand.resize imgExpand.style = $.addStyle "body.fitheight img[md5] + img { max-height: #{d.body.clientHeight}px }" - imgExpand.style.className = 'height' node: (root) -> return unless thumb = $ 'img[md5]', root