Changeset 3180:e7e2312eb54b for admin/js
- Timestamp:
- 02/20/16 14:59:35 (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/jquery/jquery.ui.touch-punch.js
r2495 r3180 1 1 /*! 2 * jQuery UI Touch Punch 0.2. 22 * jQuery UI Touch Punch 0.2.3 3 3 * 4 * Copyright 2011 , Dave Furfero4 * Copyright 2011–2014, Dave Furfero 5 5 * Dual licensed under the MIT or GPL Version 2 licenses. 6 6 * … … 21 21 var mouseProto = $.ui.mouse.prototype, 22 22 _mouseInit = mouseProto._mouseInit, 23 _mouseDestroy = mouseProto._mouseDestroy, 23 24 touchHandled; 24 25 … … 149 150 150 151 // 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 }); 155 157 156 158 // Call the original $.ui.mouse init method … … 158 160 }; 159 161 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 160 180 })(jQuery);
Note: See TracChangeset
for help on using the changeset viewer.