Pārlūkot izejas kodu

Merge pull request #682 from RohanSakhale/version-update

Updated version
Emanuele 6 gadi atpakaļ
vecāks
revīzija
b93af46e6f

+ 1 - 1
composer.json

@@ -1,7 +1,7 @@
 {
   "name": "components/bootstrap-switch",
   "description": "Turn checkboxes and radio buttons into toggle switches.",
-  "version": "3.3.4",
+  "version": "3.3.5",
   "type": "component",
   "keywords": [
     "bootstrap",

+ 2 - 2
dist/css/bootstrap2/bootstrap-switch.css

@@ -1,10 +1,10 @@
 /**
   * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
   *
-  * @version v3.3.4
+  * @version v3.3.5
   * @homepage https://bttstrp.github.io/bootstrap-switch
   * @author Mattia Larentis <[email protected]> (http://larentis.eu)
-  * @license Apache-2.0
+  * @license MIT
   */
 
 .clearfix {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2 - 2
dist/css/bootstrap2/bootstrap-switch.min.css


+ 2 - 2
dist/css/bootstrap3/bootstrap-switch.css

@@ -1,10 +1,10 @@
 /**
   * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
   *
-  * @version v3.3.4
+  * @version v3.3.5
   * @homepage https://bttstrp.github.io/bootstrap-switch
   * @author Mattia Larentis <[email protected]> (http://larentis.eu)
-  * @license Apache-2.0
+  * @license MIT
   */
 
 .bootstrap-switch {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2 - 2
dist/css/bootstrap3/bootstrap-switch.min.css


+ 4 - 3
dist/js/bootstrap-switch.js

@@ -1,10 +1,10 @@
 /**
   * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
   *
-  * @version v3.3.4
+  * @version v3.3.5
   * @homepage https://bttstrp.github.io/bootstrap-switch
   * @author Mattia Larentis <[email protected]> (http://larentis.eu)
-  * @license Apache-2.0
+  * @license MIT
   */
 
 (function (global, factory) {
@@ -393,7 +393,8 @@
           args[_key] = arguments[_key];
         }
 
-        if (_this9.options.onSwitchChange.apply(element, args) === false) {
+        var changeState = _this9.options.onSwitchChange.apply(element, args);
+        if (changeState === false) {
           if (_this9.$element.is(':radio')) {
             $('[name="' + _this9.$element.attr('name') + '"]').trigger('previousState.bootstrapSwitch', true);
           } else {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2 - 2
dist/js/bootstrap-switch.min.js


+ 3 - 3
package.json

@@ -1,7 +1,7 @@
 {
   "name": "bootstrap-switch",
   "description": "Turn checkboxes and radio buttons into toggle switches.",
-  "version": "3.3.4",
+  "version": "3.3.5",
   "keywords": [
     "bootstrap",
     "switch",
@@ -16,8 +16,8 @@
   ],
   "main": "dist/js/bootstrap-switch.js",
   "peerDependencies": {
-    "bootstrap": "^3.1.1",
-    "jquery": ">=1.9.0"
+    "bootstrap": "^3.3.7",
+    "jquery": ">=1.12.4"
   },
   "repository": {
     "type": "git",

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels