diff options
-rw-r--r-- | ui/source/ui.core.js | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |