From cc5574f8b5e12faf4610eb9bb7959b1dbf34e35f Mon Sep 17 00:00:00 2001 From: Julius Date: Tue, 18 Jun 2013 09:10:31 +0200 Subject: [PATCH] Revert ac62dcce9d8872caea742c78e149f4cee8a32c3e --- app/assets/javascripts/application.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 18e0a8dc..c49e5d9d 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -39,19 +39,6 @@ $.fn.sorter = (function(){ })(); -// allow touch devices to work on click events -// http://stackoverflow.com/a/16221066 -$.fn.extend({ _on: (function(){ return $.fn.on; })() }); -$.fn.extend({ - on: (function(){ - var isTouchSupported = 'ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch; - return function( types, selector, data, fn, one ) { - if (typeof types == 'string' && isTouchSupported && !(types.match(/touch/gi))) types = types.replace(/click/gi, 'touchstart'); - return this._on( types, selector, data, fn); - }; - }()), -}); - // Load following statements, when DOM is ready $(function() {