Commit 7241db0a authored by dfisch's avatar dfisch

Allow options to be defined by data attributes

parent 8b42b6a9
......@@ -91,8 +91,8 @@
*/
function Multiselect(select, options) {
this.options = this.mergeOptions(options);
this.$select = $(select);
this.options = this.mergeOptions($.extend({}, options, this.$select.data()));
// Initialization.
// We have to clone to create a new reference.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment