From 7ba4d5fb9be08f5c4af093b946af47c482aee43d Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 8 Jan 2015 17:53:10 -0500 Subject: [PATCH] Remove $.proxy from shape --- src/definitions/modules/shape.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/shape.js b/src/definitions/modules/shape.js index 779778b40..1a89cc20f 100644 --- a/src/definitions/modules/shape.js +++ b/src/definitions/modules/shape.js @@ -115,7 +115,7 @@ $.fn.shape = function(parameters) { module.reset(); module.set.active(); }; - $.proxy(settings.beforeChange, $nextSide[0])(); + settings.beforeChange.call($nextSide.get()); if(module.get.transitionEvent()) { module.verbose('Starting CSS animation'); $module @@ -260,7 +260,7 @@ $.fn.shape = function(parameters) { $nextSide .addClass(className.active) ; - $.proxy(settings.onChange, $nextSide[0])(); + settings.onChange.call($nextSide.get()); module.set.defaultSide(); } },