From a18f98e5471c56c08f5377886e94552fe95e9146 Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Fri, 6 Jun 2008 03:30:06 +0000 Subject: [PATCH] --- ui/source/ui.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/source/ui.core.js b/ui/source/ui.core.js index 31cd4a559..22fecb960 100644 --- a/ui/source/ui.core.js +++ b/ui/source/ui.core.js @@ -105,7 +105,7 @@ $.widget = function(name, prototype) { if (isMethodCall && instance) { instance[options].apply(instance, args); } else if (!isMethodCall) { - var instance = new $[namespace][name](this, options), target = instance.element || this; + var instance = new $[namespace][name](this, options), target = instance.element || $(this); if (target.is('.ui-wrapper')) { self = target[0]; -- 2.39.5