bootstrap-slider-rails 9.1.2 → 9.1.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: ab1a2792ceb6428d530b5337f456393ea626fd8f
4
- data.tar.gz: 5d63d886ce4f22ed3faceec1480c72934fad3157
3
+ metadata.gz: 0dacade2e3a4496a65b3a18e718a434dcf8085e1
4
+ data.tar.gz: 42fc5a3cdf8926a19ec998223d202d4c6eb5002e
5
5
  SHA512:
6
- metadata.gz: 52eec65890c1d1ae1dbe18ad091f5047f3ab30f4baa83c60f268d37d904df369d467259f3c55ba5f3c93b4358834d5a54b2c19298e3751863585362c8a3822a5
7
- data.tar.gz: 58d546eb5943b8ae90c28cdc191086de5e0da4ccb510bd3eada094dd0ec43f0a2cd187b4817187a847398fa3ac8001373227fb8a4248228f4bc53c3410bb54e6
6
+ metadata.gz: a57be6137d3910a88c3a1858edc03102d28321a96f9f01f185b82240ae89bb1c3016a66d227bcac3bdbc12bbd847415e81c83327f217731c70771f6adc0d9291
7
+ data.tar.gz: 2741806b1a3533ae6da244a5f8d65b9728250e6c11aa263d2c8cb83d1d837b80bcec676ff87400508924f154c79913c2b52f05298996d8729a5b82972e9a9e1c
@@ -1,5 +1,5 @@
1
1
  module BootstrapSlider
2
2
  module Rails
3
- VERSION = '9.1.2'
3
+ VERSION = '9.1.3'
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*! =======================================================
2
- VERSION 9.1.2
2
+ VERSION 9.1.3
3
3
  ========================================================= */
4
4
  "use strict";
5
5
 
@@ -36,6 +36,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
36
36
  * v1.0.1
37
37
  * MIT license
38
38
  */
39
+ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object";
39
40
 
40
41
  (function (factory) {
41
42
  if (typeof define === "function" && define.amd) {
@@ -57,13 +58,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
57
58
  var NAMESPACE_ALTERNATE = 'bootstrapSlider';
58
59
 
59
60
  // Polyfill console methods
60
- if (!window.console) {
61
+ if (windowIsDefined && !window.console) {
61
62
  window.console = {};
62
63
  }
63
- if (!window.console.log) {
64
+ if (windowIsDefined && !window.console.log) {
64
65
  window.console.log = function () {};
65
66
  }
66
- if (!window.console.warn) {
67
+ if (windowIsDefined && !window.console.warn) {
67
68
  window.console.warn = function () {};
68
69
  }
69
70
 
@@ -1624,7 +1625,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1624
1625
  $.bridget(NAMESPACE_MAIN, Slider);
1625
1626
  autoRegisterNamespace = NAMESPACE_MAIN;
1626
1627
  } else {
1627
- window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.");
1628
+ if (windowIsDefined) {
1629
+ window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.");
1630
+ }
1628
1631
  autoRegisterNamespace = NAMESPACE_ALTERNATE;
1629
1632
  }
1630
1633
  $.bridget(NAMESPACE_ALTERNATE, Slider);
@@ -1,5 +1,5 @@
1
1
  /*! =======================================================
2
- VERSION 9.1.2
2
+ VERSION 9.1.3
3
3
  ========================================================= */
4
4
  /*! =========================================================
5
5
  * bootstrap-slider.js
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-slider-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.1.2
4
+ version: 9.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedr Browne