We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 650363e commit 2fa8f6cCopy full SHA for 2fa8f6c
slider.js
@@ -130,7 +130,7 @@ angular.module('ui.bootstrap-slider', [])
130
}
131
132
// check if slider jQuery plugin exists
133
- if ('$' in window && $.fn.slider) {
+ if (typeof window.$ !== 'undefined' && typeof $.fn === 'object' && $.fn.slider)
134
// adding methods to jQuery slider plugin prototype
135
$.fn.slider.constructor.prototype.disable = function () {
136
this.picker.off();
0 commit comments