]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
clean up some unused code from slider
authorzurbchris <chris@zurb.com>
Thu, 19 Nov 2015 08:18:22 +0000 (00:18 -0800)
committerzurbchris <chris@zurb.com>
Thu, 19 Nov 2015 08:18:22 +0000 (00:18 -0800)
js/foundation.slider.js

index ec38882b9ee6161e6912d89a8aecbb2665641efa..8565ffb6de3d0de2e9f3194f95c4fee964cbd0ae 100644 (file)
       // var curHandle,
       //     timer,
       var $body = $('body');
-
       $handle
         .off('mousedown.zf.slider')
         .on('mousedown.zf.slider', function(e){
             e.preventDefault();
 
             // timer = setTimeout(function(){
-              _this._handleEvent(e, curHandle);
+            _this._handleEvent(e, curHandle);
             // }, _this.options.dragDelay);
           }).on('mouseup.zf.slider', function(e){
-            clearTimeout(timer);
-
+            // clearTimeout(timer);
             _this.animComplete = true;
             _this._handleEvent(e, curHandle);
             $handle.removeClass('is-dragging');