From 2aa1df28e2a2d9c1fefcefe148476d6986b73605 Mon Sep 17 00:00:00 2001 From: gapon2401 Date: Sat, 28 Dec 2013 03:56:07 -0800 Subject: [PATCH] Update jquery.elevatezoom.js Duplicate self.options.zoomWindowWidth --- jquery.elevatezoom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.elevatezoom.js b/jquery.elevatezoom.js index 1813e2d..c04ac15 100644 --- a/jquery.elevatezoom.js +++ b/jquery.elevatezoom.js @@ -610,7 +610,7 @@ if ( typeof Object.create !== 'function' ) { lensHeight = String((self.options.zoomWindowHeight/self.heightRatio)) } - if(self.options.zoomWindowWidth < self.options.zoomWindowWidth){ + if(self.nzWidth < self.options.zoomWindowWidth){ lensWidth = self.nzWidth; } else{ @@ -1774,4 +1774,4 @@ if ( typeof Object.create !== 'function' ) { onImageSwapComplete: $.noop }; -})( jQuery, window, document ); \ No newline at end of file +})( jQuery, window, document );