diff --git a/src/viewport.js b/src/viewport.js index 83c10df7..e4945f69 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -577,7 +577,6 @@ $.Viewport.prototype = { */ resize: function( newContainerSize, maintain ) { //Set current size to 1 if 0 (hidden div) - var currentsize = this.containerSize.x == 0 ? 1 : this.containerSize.x; var oldBounds = this.getBounds(), newBounds = oldBounds,