Remove unused variable
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 23 Oct 2009 17:48:15 +0000 (11:48 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Sat, 24 Oct 2009 23:57:35 +0000 (17:57 -0600)
imp/js/ViewPort.js

index 620c2b8..55f3784 100644 (file)
@@ -361,7 +361,7 @@ var ViewPort = Class.create({
             return this._onResize.bind(this).defer();
         }
 
-        var diff, h, setpane,
+        var h, setpane,
             c = $(this.opts.content),
             de = document.documentElement,
             lh = this._getLineHeight();
@@ -395,7 +395,7 @@ var ViewPort = Class.create({
         if (setpane) {
             this.opts.split_pane.setStyle({ height: (this._getMaxHeight() - h - lh) + 'px' }).show();
             this.split_bar.show();
-        } else if (diff = de.scrollHeight - de.clientHeight) {
+        } else if (de.scrollHeight - de.clientHeight) {
             c.setStyle({ height: (lh * (this.page_size - 1)) + 'px' });
         }