Dotclear

Changeset 3180:e7e2312eb54b for admin/js


Ignore:
Timestamp:
02/20/16 14:59:35 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Update jQuery UI Touch Punch (0.2.2 to 0.2.3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/jquery/jquery.ui.touch-punch.js

    r2495 r3180  
    11/*! 
    2  * jQuery UI Touch Punch 0.2.2 
     2 * jQuery UI Touch Punch 0.2.3 
    33 * 
    4  * Copyright 2011, Dave Furfero 
     4 * Copyright 2011–2014, Dave Furfero 
    55 * Dual licensed under the MIT or GPL Version 2 licenses. 
    66 * 
     
    2121  var mouseProto = $.ui.mouse.prototype, 
    2222      _mouseInit = mouseProto._mouseInit, 
     23      _mouseDestroy = mouseProto._mouseDestroy, 
    2324      touchHandled; 
    2425 
     
    149150 
    150151    // Delegate the touch handlers to the widget's element 
    151     self.element 
    152       .bind('touchstart', $.proxy(self, '_touchStart')) 
    153       .bind('touchmove', $.proxy(self, '_touchMove')) 
    154       .bind('touchend', $.proxy(self, '_touchEnd')); 
     152    self.element.bind({ 
     153      touchstart: $.proxy(self, '_touchStart'), 
     154      touchmove: $.proxy(self, '_touchMove'), 
     155      touchend: $.proxy(self, '_touchEnd') 
     156    }); 
    155157 
    156158    // Call the original $.ui.mouse init method 
     
    158160  }; 
    159161 
     162  /** 
     163   * Remove the touch event handlers 
     164   */ 
     165  mouseProto._mouseDestroy = function () { 
     166     
     167    var self = this; 
     168 
     169    // Delegate the touch handlers to the widget's element 
     170    self.element.unbind({ 
     171      touchstart: $.proxy(self, '_touchStart'), 
     172      touchmove: $.proxy(self, '_touchMove'), 
     173      touchend: $.proxy(self, '_touchEnd') 
     174    }); 
     175 
     176    // Call the original $.ui.mouse destroy method 
     177    _mouseDestroy.call(self); 
     178  }; 
     179 
    160180})(jQuery); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map