Side navigation
#11452 closed bug (invalid)
Opened March 08, 2012 02:02PM UTC
Closed March 08, 2012 09:04PM UTC
widget dont reset all properties on destroy
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | misc | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
look at this.to
at first widget call is 0, after that is 2.
$.widget("test.test", {
to: {},
options: {
optObj: {
}
},
_create: function() {
$.Widget.prototype._create.call(this);
console.log(Object.keys(this.to).length);
console.log(Object.keys(this.options.optObj).length);
this.to["1"] = 1;
this.to["2"] = { id: 2 };
this.options.optObj["3"] = 43;
this.options.optObj["3"] = { id: 433 };
},
destroy: function() {
this.to = {};
$.Widget.prototype.destroy.call(this);
}
});
$(document).ready(function() {
$("#divTest").test();
$("#divTest").test("destroy");
$("#divTest").test();
});
Attachments (0)
Change History (1)
Changed March 08, 2012 09:04PM UTC by comment:1
component: | unfiled → misc |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
Thanks for submitting a ticket to the jQuery bug tracker. Unfortunately we only handle issues to do with jQuery core. For assistance with jQuery UI please either submit your issue to their bug tracker http://bugs.jqueryui.com or ask for further assistance in #jquery on freenode.