From 865f525e8d5099c2a3f68cfc960beeb064758f78 Mon Sep 17 00:00:00 2001 From: SquadraCorse Date: Mon, 4 Nov 2013 00:38:22 +0100 Subject: [PATCH] Update viewport-info.js --- js/viewport-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/viewport-info.js b/js/viewport-info.js index 15fe42b..5a4b8dd 100644 --- a/js/viewport-info.js +++ b/js/viewport-info.js @@ -63,7 +63,7 @@ // Get the smallest height. var smallestHeight = this._getBestCandidateIf(images, function(a, b) { return a.h < b.h; }); // Remove all candidates with height greater than it. - this._removeCandidatesIf(images, function(a, b) { return a.h > smallestWidth.h; }); + this._removeCandidatesIf(images, function(a, b) { return a.h > smallestHeight.h; }); // Get the smallest pixel density. var smallestPxDensity = this._getBestCandidateIf(images, function(a, b) { return a.x < b.x; });