Procházet zdrojové kódy

fix: always trigger the switchChange event after a change event

Francesco Pontillo před 10 roky
rodič
revize
b18a65ba9b
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/coffee/bootstrap-switch.coffee

+ 2 - 1
src/coffee/bootstrap-switch.coffee

@@ -376,7 +376,8 @@ do ($ = window.jQuery, window) ->
               .not(@$element)
               .prop("checked", false)
               .trigger "change.bootstrapSwitch", true
-            @$element.trigger "switchChange.bootstrapSwitch", [state]
+          
+          @$element.trigger "switchChange.bootstrapSwitch", [state]
 
         "focus.bootstrapSwitch": (e) =>
           e.preventDefault()