From 5ef877e8a5c53fff8ff46c804c9fc926a1eb3dfc Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Mon, 17 Feb 2014 00:00:51 +0200 Subject: [PATCH] animationComplete: Refer to the default duration using array notation Fixes gh-7116 --- js/jquery.mobile.animationComplete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.animationComplete.js b/js/jquery.mobile.animationComplete.js index 66606a01aec..9f26891fce8 100644 --- a/js/jquery.mobile.animationComplete.js +++ b/js/jquery.mobile.animationComplete.js @@ -71,7 +71,7 @@ define( [ // If we could not read a duration use the default if ( duration === 0 || duration === undefined ) { - duration = $.fn.animationComplete.default; + duration = $.fn.animationComplete[ "default" ]; } } @@ -98,7 +98,7 @@ define( [ }; // Allow default callback to be configured on mobileInit - $.fn.animationComplete.default = 1000; + $.fn.animationComplete[ "default" ] = 1000; })( jQuery ); //>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude); });