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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90123995000b4f3d34b11d73779582b9601e2b12
4
- data.tar.gz: b2b7fd3bccf4950d22ba5549a5187335320fad30
3
+ metadata.gz: 95494db12fa2fcc3dcec7ac26816d7c1e65e98be
4
+ data.tar.gz: 24e2df7d2cf60e84a9fd1a6e72b8a491ba5fc8ec
5
5
  SHA512:
6
- metadata.gz: 6d46482d300fadb9c51b0ba101766eabe7abb23945e7c309f966e84d352f46b0e008e48d5ede04f6190540d106b60b206b7414b4380a21deaed1b0cb4fe81cf2
7
- data.tar.gz: 757e882d5581d7b8116afe8602b4d0c92c59dbb857832efa27aeed926321c0cca924071b5a87c7f053ecec2caea995cd3293dfcfcff51d199957c59fc0b670e1
6
+ metadata.gz: 7346c6b5a1acf033f3d5b7a6809c58f00ddb4addf719bc59f73410f70e207b1335194258f8c4af18d313b4e93c7378ccf88d194e5066ebc71d02990883b43aad
7
+ data.tar.gz: 2977d8f30674009d7211efbfcadeef5505dc61ee51c5cbf522bfc94a674384a32a0cfccd4f5accf30d2dba3412e7f0c8f22d704114b0ff8f73c87ef0d88d8a4c
@@ -1,5 +1,5 @@
1
1
  module BootstrapSlider
2
2
  module Rails
3
- VERSION = '5.2.1'
3
+ VERSION = '5.2.3'
4
4
  end
5
5
  end
@@ -907,19 +907,26 @@
907
907
 
908
908
  ********************************/
909
909
  _removeSliderEventHandlers: function() {
910
- // Remove event listeners from handle1
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
- this.handle2.removeEventListener("focus", this.handle2Keydown, false);
918
- this.handle2.removeEventListener("blur", this.handle2Keydown, false);
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
- this.sliderElem.removeEventListener("mouseenter", this.showTooltip, false);
922
- this.sliderElem.removeEventListener("mouseleave", this.hideTooltip, false);
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
- _unbindNonQueryEventHandler: function(evt, callback) {
933
- var callbacks = this.eventToCallbackMap[evt];
934
- if(callbacks !== undefined) {
935
- for (var i = 0; i < callbacks.length; i++) {
936
- if (callbacks[i] === callback) {
937
- callbacks.splice(i, 1);
938
- break;
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.1
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-13 00:00:00.000000000 Z
11
+ date: 2015-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties