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(); } },