From fba2d1b29001340788798b7aacfc4b3b69f6ac9c Mon Sep 17 00:00:00 2001 From: imakewebthings Date: Tue, 19 Nov 2013 15:11:27 -0800 Subject: [PATCH] Fix scale on load not firing sometimes --- extensions/scale/deck.scale.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/scale/deck.scale.js b/extensions/scale/deck.scale.js index 58bb26e..e0ae8e2 100644 --- a/extensions/scale/deck.scale.js +++ b/extensions/scale/deck.scale.js @@ -92,9 +92,9 @@ works fine. window.clearTimeout(timer); timer = window.setTimeout(scaleDeck, options.scaleDebounce); }); - $window.unbind('load.deckscale').bind('load.deckscale', function() { - $.deck('enableScale'); - }); + $.deck('enableScale'); + $window.unbind('load.deckscale'); + $window.bind('load.deckscale', scaleDeck); }; var bindKeyEvents = function() { -- 2.11.4.GIT