Skip to content

Commit

Permalink
Released 0.8.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianreavis committed Oct 17, 2013
1 parent 249226c commit 0ad43dc
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 22 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "selectize",
"keywords": ["select", "ui", "form", "input", "control", "autocomplete", "tagging", "tag"],
"description": "Selectize is a jQuery-based custom <select> UI control. Useful for tagging, contact lists, country selectors, etc.",
"version": "0.8.0",
"version": "0.8.1",
"license": "Apache License, Version 2.0",
"readmeFilename": "README.md",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion dist/css/selectize.bootstrap2.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.bootstrap2.css (v0.8.0) - Bootstrap 2 Theme
* selectize.bootstrap2.css (v0.8.1) - Bootstrap 2 Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down
2 changes: 1 addition & 1 deletion dist/css/selectize.bootstrap3.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.bootstrap3.css (v0.8.0) - Bootstrap 3 Theme
* selectize.bootstrap3.css (v0.8.1) - Bootstrap 3 Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down
2 changes: 1 addition & 1 deletion dist/css/selectize.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.css (v0.8.0)
* selectize.css (v0.8.1)
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down
2 changes: 1 addition & 1 deletion dist/css/selectize.default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.default.css (v0.8.0) - Default Theme
* selectize.default.css (v0.8.1) - Default Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down
2 changes: 1 addition & 1 deletion dist/css/selectize.legacy.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.legacy.css (v0.8.0) - Default Theme
* selectize.legacy.css (v0.8.1) - Default Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down
17 changes: 15 additions & 2 deletions dist/js/selectize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.js (v0.8.0)
* selectize.js (v0.8.1)
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down Expand Up @@ -633,6 +633,13 @@
self.ignoreHover = false;
});

// store original children and tab index so that they can be
// restored when the destroy() method is called.
this.revertSettings = {
$children : self.$input.children().detach(),
tabindex : self.$input.attr('tabindex')
};

self.$input.attr('tabindex', -1).hide().after(self.$wrapper);

if ($.isArray(settings.items)) {
Expand Down Expand Up @@ -2175,12 +2182,18 @@
destroy: function() {
var self = this;
var eventNS = self.eventNS;
var revertSettings = self.revertSettings;

self.trigger('destroy');
self.off();
self.$wrapper.remove();
self.$dropdown.remove();
self.$input.show();

self.$input
.html('')
.append(revertSettings.$children)
.attr({tabindex: revertSettings.tabindex})
.show();

$(window).off(eventNS);
$(document).off(eventNS);
Expand Down
6 changes: 3 additions & 3 deletions dist/js/selectize.min.js

Large diffs are not rendered by default.

17 changes: 15 additions & 2 deletions dist/js/standalone/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@
}));

/**
* selectize.js (v0.8.0)
* selectize.js (v0.8.1)
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down Expand Up @@ -1217,6 +1217,13 @@
self.ignoreHover = false;
});

// store original children and tab index so that they can be
// restored when the destroy() method is called.
this.revertSettings = {
$children : self.$input.children().detach(),
tabindex : self.$input.attr('tabindex')
};

self.$input.attr('tabindex', -1).hide().after(self.$wrapper);

if ($.isArray(settings.items)) {
Expand Down Expand Up @@ -2759,12 +2766,18 @@
destroy: function() {
var self = this;
var eventNS = self.eventNS;
var revertSettings = self.revertSettings;

self.trigger('destroy');
self.off();
self.$wrapper.remove();
self.$dropdown.remove();
self.$input.show();

self.$input
.html('')
.append(revertSettings.$children)
.attr({tabindex: revertSettings.tabindex})
.show();

$(window).off(eventNS);
$(document).off(eventNS);
Expand Down
6 changes: 3 additions & 3 deletions dist/js/standalone/selectize.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/less/selectize.bootstrap2.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.bootstrap2.css (v0.8.0) - Bootstrap 2 Theme
* selectize.bootstrap2.css (v0.8.1) - Bootstrap 2 Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down
2 changes: 1 addition & 1 deletion dist/less/selectize.bootstrap3.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.bootstrap3.css (v0.8.0) - Bootstrap 3 Theme
* selectize.bootstrap3.css (v0.8.1) - Bootstrap 3 Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down
2 changes: 1 addition & 1 deletion dist/less/selectize.default.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.default.css (v0.8.0) - Default Theme
* selectize.default.css (v0.8.1) - Default Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down
2 changes: 1 addition & 1 deletion dist/less/selectize.legacy.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.legacy.css (v0.8.0) - Default Theme
* selectize.legacy.css (v0.8.1) - Default Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "selectize",
"keywords": ["select", "ui", "form", "input", "control", "autocomplete", "tagging", "tag"],
"description": "Selectize is a jQuery-based custom <select> UI control. Useful for tagging, contact lists, country selectors, etc.",
"version": "0.8.0",
"version": "0.8.1",
"author": "Brian Reavis <brian@thirdroute.com>",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion selectize.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "selectize",
"version": "0.8.0",
"version": "0.8.1",
"title": "Selectize.js",
"author": {
"name": "Brian Reavis",
Expand Down

0 comments on commit 0ad43dc

Please sign in to comment.