bootstrap-slider-rails 5.2.1 → 5.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootstrap-slider-rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap-slider.js +27 -20
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95494db12fa2fcc3dcec7ac26816d7c1e65e98be
|
4
|
+
data.tar.gz: 24e2df7d2cf60e84a9fd1a6e72b8a491ba5fc8ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7346c6b5a1acf033f3d5b7a6809c58f00ddb4addf719bc59f73410f70e207b1335194258f8c4af18d313b4e93c7378ccf88d194e5066ebc71d02990883b43aad
|
7
|
+
data.tar.gz: 2977d8f30674009d7211efbfcadeef5505dc61ee51c5cbf522bfc94a674384a32a0cfccd4f5accf30d2dba3412e7f0c8f22d704114b0ff8f73c87ef0d88d8a4c
|
@@ -907,19 +907,26 @@
|
|
907
907
|
|
908
908
|
********************************/
|
909
909
|
_removeSliderEventHandlers: function() {
|
910
|
-
// Remove event listeners
|
910
|
+
// Remove keydown event listeners
|
911
911
|
this.handle1.removeEventListener("keydown", this.handle1Keydown, false);
|
912
|
-
this.handle1.removeEventListener("focus", this.showTooltip, false);
|
913
|
-
this.handle1.removeEventListener("blur", this.hideTooltip, false);
|
914
|
-
|
915
|
-
// Remove event listeners from handle2
|
916
912
|
this.handle2.removeEventListener("keydown", this.handle2Keydown, false);
|
917
|
-
|
918
|
-
|
913
|
+
|
914
|
+
if (this.showTooltip) {
|
915
|
+
this.handle1.removeEventListener("focus", this.showTooltip, false);
|
916
|
+
this.handle2.removeEventListener("focus", this.showTooltip, false);
|
917
|
+
}
|
918
|
+
if (this.hideTooltip) {
|
919
|
+
this.handle1.removeEventListener("blur", this.hideTooltip, false);
|
920
|
+
this.handle2.removeEventListener("blur", this.hideTooltip, false);
|
921
|
+
}
|
919
922
|
|
920
923
|
// Remove event listeners from sliderElem
|
921
|
-
|
922
|
-
|
924
|
+
if (this.showTooltip) {
|
925
|
+
this.sliderElem.removeEventListener("mouseenter", this.showTooltip, false);
|
926
|
+
}
|
927
|
+
if (this.hideTooltip) {
|
928
|
+
this.sliderElem.removeEventListener("mouseleave", this.hideTooltip, false);
|
929
|
+
}
|
923
930
|
this.sliderElem.removeEventListener("touchstart", this.mousedown, false);
|
924
931
|
this.sliderElem.removeEventListener("mousedown", this.mousedown, false);
|
925
932
|
},
|
@@ -929,17 +936,17 @@
|
|
929
936
|
}
|
930
937
|
this.eventToCallbackMap[evt].push(callback);
|
931
938
|
},
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
939
|
+
_unbindNonQueryEventHandler: function(evt, callback) {
|
940
|
+
var callbacks = this.eventToCallbackMap[evt];
|
941
|
+
if(callbacks !== undefined) {
|
942
|
+
for (var i = 0; i < callbacks.length; i++) {
|
943
|
+
if (callbacks[i] === callback) {
|
944
|
+
callbacks.splice(i, 1);
|
945
|
+
break;
|
946
|
+
}
|
947
|
+
}
|
948
|
+
}
|
949
|
+
},
|
943
950
|
_cleanUpEventCallbacksMap: function() {
|
944
951
|
var eventNames = Object.keys(this.eventToCallbackMap);
|
945
952
|
for(var i = 0; i < eventNames.length; i++) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-slider-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedr Browne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|