jquery.tap
jquery.tap copied to clipboard
Updated for usage with browsers not having 'module'
I had the problem that this "addon" was not able to run in browsers which scopre doesn't have "module". I fixed it by checking if the type of module is not undefined which prevents an "ReferenceError: module is not defined" and $.tap not able to work.
Btw. thanks for this nice piece of code. Great work!
Yep, something along these lines is needed. Also possible:
if (typeof module === 'object' && module.exports)