diff --git a/backbone.stickit.js b/backbone.stickit.js index 3097c9b..f4b778c 100644 --- a/backbone.stickit.js +++ b/backbone.stickit.js @@ -506,7 +506,7 @@ selectConfig = {}; var getList = function($el) { return $el.map(function() { - return {value:this.value, label:this.text}; + return {value:this.value, label:this.text, attr: Backbone.$(this).prop('attributes')}; }).get(); }; if ($el.find('optgroup').length) { @@ -536,12 +536,17 @@ _.each(optList, function(obj) { var option = Backbone.$('