diff --git a/touch-emulator.js b/touch-emulator.js index 6d8b2dd..64e9da1 100644 --- a/touch-emulator.js +++ b/touch-emulator.js @@ -85,18 +85,34 @@ /** * Simple trick to fake touch event support * this is enough for most libraries like Modernizr and Hammer + * @returns {Function} */ function fakeTouchSupport() { var objs = [window, document.documentElement]; var props = ['ontouchstart', 'ontouchmove', 'ontouchcancel', 'ontouchend']; + var replaced = []; for(var o=0; o