Deep option object problem
When I create a widget that has deep set object literal options, and if I try to apply the widget to multiple divs, each div contains its values and the values of all the preceding instance's values as well.
e.g.
- $widget("test.me", {
- options: {
- subOption: {
- values: []
- }
- },
- _create: function() {
- var _this = this;
- $.each(this.options.subOption.values, function (i, value) {
- alert(value);
- }
- }
- });
when this is put on multiple elements with different values I am getting non-instance specific concat'd version of this option array.
The fastest code is never executed.