소스 검색

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()

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.