aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2008-06-06 11:30:22 +0000
committerScott González <scott.gonzalez@gmail.com>2008-06-06 11:30:22 +0000
commit59645bd754ed4a4c2120fc2168fb3bcb3165d545 (patch)
tree689cb4edf833e2cdd64fc1c35e8bd2064b0ddc60 /ui
parent01f336e24265d595d9f10de37b709c4f8385fb36 (diff)
downloadjquery-ui-59645bd754ed4a4c2120fc2168fb3bcb3165d545.tar.gz
jquery-ui-59645bd754ed4a4c2120fc2168fb3bcb3165d545.zip
Core: Reverted back to r149: Removed wrapper changes.
Diffstat (limited to 'ui')
-rw-r--r--ui/source/ui.core.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/ui/source/ui.core.js b/ui/source/ui.core.js
index 22fecb960..7b96ced5a 100644
--- a/ui/source/ui.core.js
+++ b/ui/source/ui.core.js
@@ -100,18 +100,11 @@ $.widget = function(name, prototype) {
}
return this.each(function() {
- var instance = $.data(this, name), self = this;
-
+ var instance = $.data(this, name);
if (isMethodCall && instance) {
instance[options].apply(instance, args);
} else if (!isMethodCall) {
- var instance = new $[namespace][name](this, options), target = instance.element || $(this);
-
- if (target.is('.ui-wrapper')) {
- self = target[0];
- }
-
- $.data(self, name, instance);
+ $.data(this, name, new $[namespace][name](this, options));
}
});
};