]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Make disabled slider enable-able by removing checks. 8503/head
authorMarius Olbertz <marius.olbertz@gmail.com>
Fri, 1 Apr 2016 15:29:33 +0000 (17:29 +0200)
committerMarius Olbertz <marius.olbertz@gmail.com>
Fri, 1 Apr 2016 15:29:33 +0000 (17:29 +0200)
js/foundation.slider.js

index ec93ac4b35c440c7207b0480179d96679b5d0176..c9dfdc5d004f87a4953cca1b645ef7c3c43f40eb 100644 (file)
@@ -107,7 +107,7 @@ class Slider {
    */
   _setHandlePos($hndl, location, noInvert, cb) {
     // don't move if the slider has been disabled since its initialization
-    if (this.options.disabled || this.$element.hasClass(this.options.disabledClass)) {
+    if (this.$element.hasClass(this.options.disabledClass)) {
       return;
     }
     //might need to alter that slightly for bars that will have odd number selections.
@@ -337,8 +337,6 @@ class Slider {
    * @param {jQuery} $handle - the current handle to apply listeners to.
    */
   _events($handle) {
-    if (this.options.disabled) { return false; }
-
     var _this = this,
         curHandle,
         timer;