Преглед на файлове

removed label drag listener when mouse leave is fired

Emanuele Marchi преди 11 години
родител
ревизия
6827b0e27d
променени са 3 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 5 0
      build/js/bootstrap-switch.js
  2. 0 0
      build/js/bootstrap-switch.min.js
  3. 3 0
      src/coffee/bootstrap-switch.coffee

+ 5 - 0
build/js/bootstrap-switch.js

@@ -377,6 +377,11 @@
               }
             };
           })(this),
+          "mouseleave.bootstrapSwitch": (function(_this) {
+            return function(e) {
+              return _this.$label.trigger("mouseup.bootstrapSwitch");
+            };
+          })(this),
           "click.bootstrapSwitch": (function(_this) {
             return function(e) {
               e.preventDefault();

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
build/js/bootstrap-switch.min.js


+ 3 - 0
src/coffee/bootstrap-switch.coffee

@@ -275,6 +275,9 @@
           @$div.css "margin-left", ""
           @$wrapper.addClass "#{@name}-animate" if @options.animate
 
+        "mouseleave.bootstrapSwitch": (e) =>
+          @$label.trigger "mouseup.bootstrapSwitch"
+
         "click.bootstrapSwitch": (e) =>
           e.preventDefault()
           e.stopImmediatePropagation()

Някои файлове не бяха показани, защото твърде много файлове са промени