Skip to content

Commit

Permalink
selectized class is now removed at destroy time
Browse files Browse the repository at this point in the history
  • Loading branch information
Scottmitch committed May 21, 2014
1 parent 6caddcc commit cc0934d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/selectize.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ $.fn.selectize = function(settings_user) {

instance = new Selectize($input, $.extend(true, {}, defaults, settings_element, settings_user));
$input.data('selectize', instance);
$input.addClass('selectized');
});
};

Expand Down
3 changes: 3 additions & 0 deletions src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ $.extend(Selectize.prototype, {
var classes;
var classes_plugins;

self.$input.addClass('selectized');

inputMode = self.settings.mode;
tab_index = self.$input.attr('tabindex') || '';
classes = self.$input.attr('class') || '';
Expand Down Expand Up @@ -1827,6 +1829,7 @@ $.extend(Selectize.prototype, {
.html('')
.append(revertSettings.$children)
.removeAttr('tabindex')
.removeClass('selectized')
.attr({tabindex: revertSettings.tabindex})
.show();

Expand Down

0 comments on commit cc0934d

Please sign in to comment.