diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-06-06 03:30:06 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-06-06 03:30:06 +0000 |
commit | a18f98e5471c56c08f5377886e94552fe95e9146 (patch) | |
tree | 36002f3744a4c7ad193a6041cc0b4bb61c1eb5fa | |
parent | ebb04981a68445ad4bf302818b02e21940d41c25 (diff) | |
download | jquery-ui-a18f98e5471c56c08f5377886e94552fe95e9146.tar.gz jquery-ui-a18f98e5471c56c08f5377886e94552fe95e9146.zip |
-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]; |