Skip to content

Commit

Permalink
Update standalone files; versioning & changelog; release 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
abpetkov committed Oct 31, 2016
1 parent e813d13 commit 81208cb
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

0.8.2 / 2016-10-31
==================

* Adding semicolon to the end of the distribuition file
* Check switchery element state before changing it

0.8.1 / 2015-06-26
==================

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dist/switchery.js",
"dist/switchery.css"
],
"version": "0.8.1",
"version": "0.8.2",
"homepage": "http://abpetkov.github.io/switchery/",
"author": [
"Alexander Petkov <[email protected]> (https://github.com/abpetkov)"
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "switchery",
"repo": "abpetkov/switchery",
"description": "Component to create iOS 7 styled switches from default input checkboxes",
"version": "0.8.1",
"version": "0.8.2",
"keywords": [
"checkbox",
"input",
Expand Down
12 changes: 7 additions & 5 deletions dist/switchery.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ require.helper.semVerSort = function(a, b) {

/**
* Find and require a module which name starts with the provided name.
* If multiple modules exists, the highest semver is used.
* If multiple modules exists, the highest semver is used.
* This function can only be used for remote dependencies.
* @param {String} name - module name: `user~repo`
* @param {Boolean} returnPath - returns the canonical require path if true,
* @param {Boolean} returnPath - returns the canonical require path if true,
* otherwise it returns the epxorted module
*/
require.latest = function (name, returnPath) {
Expand All @@ -83,7 +83,7 @@ require.latest = function (name, returnPath) {
semVerCandidates.push({version: version, name: moduleName});
} else {
otherCandidates.push({version: version, name: moduleName});
}
}
}
}
if (semVerCandidates.concat(otherCandidates).length === 0) {
Expand Down Expand Up @@ -943,7 +943,7 @@ FastClick.notNeeded = function(layer) {

if (FastClick.prototype.deviceIsAndroid) {
metaViewport = document.querySelector('meta[name=viewport]');

if (metaViewport) {
// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
Expand Down Expand Up @@ -1922,6 +1922,7 @@ Switchery.prototype.destroy = function() {
*/

Switchery.prototype.enable = function() {
if (!this.options.disabled) return;
if (this.options.disabled) this.options.disabled = false;
if (this.element.disabled) this.element.disabled = false;
if (this.element.readOnly) this.element.readOnly = false;
Expand All @@ -1936,6 +1937,7 @@ Switchery.prototype.enable = function() {
*/

Switchery.prototype.disable = function() {
if (this.options.disabled) return;
if (!this.options.disabled) this.options.disabled = true;
if (!this.element.disabled) this.element.disabled = true;
if (!this.element.readOnly) this.element.readOnly = true;
Expand All @@ -1952,4 +1954,4 @@ if (typeof exports == "object") {
} else {
(this || window)["Switchery"] = require("switchery");
}
})()
})();
2 changes: 1 addition & 1 deletion dist/switchery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "switchery",
"version": "0.8.1",
"version": "0.8.2",
"description": "Create iOS 7 styled switches from default input checkboxes",
"main": "switchery.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion switchery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Switchery 0.8.1
* Switchery 0.8.2
* http://abpetkov.github.io/switchery/
*
* Authored by Alexander Petkov
Expand Down

0 comments on commit 81208cb

Please sign in to comment.