From be2d5e973db8718beaab1bab5bae225f3b905ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Ren=C3=A9e=20Beach?= Date: Thu, 12 Jul 2012 17:13:39 -0300 Subject: [PATCH] The resize() function does not accept options before the callback prior to 1.4.3, so this will throw an error in any jQuery 1.3 version. Using bind() resolves the issue. --- jail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jail.js b/jail.js index 4bb8656..57c83d1 100644 --- a/jail.js +++ b/jail.js @@ -169,7 +169,7 @@ // Check if there are images to load if (!!triggerEl && typeof triggerEl.bind === "function") { triggerEl.bind( options.event, {options:options, images : images}, _bufferedEventListener ); - $window.resize( {options:options, images : images}, _bufferedEventListener ); + $window.bind('resize', {options:options, images : images}, _bufferedEventListener ); } }