mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Core: Reverted back to r149: Removed wrapper changes.
This commit is contained in:
parent
01f336e242
commit
59645bd754
@ -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));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user