Skip to content

Commit

Permalink
per-element options, fix #164
Browse files Browse the repository at this point in the history
  • Loading branch information
WickyNilliams committed Jan 17, 2014
1 parent 0807bcc commit 3b2bfb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spectrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,8 @@

// Initializing a new instance of spectrum
return this.spectrum("destroy").each(function () {
var spect = spectrum(this, opts);
var options = $.extend({}, opts, $(this).data());
var spect = spectrum(this, options);
$(this).data(dataID, spect.id);
});
};
Expand Down

0 comments on commit 3b2bfb0

Please sign in to comment.