Closed warpdesign closed 10 years ago
This is not yet been pulled in. Quo.js also breaks when you load scripts with the async attribute, because the document state is already interactive when it executes the script.
Please fix this as soon as possible, it is useless for us now
:+1: for this fix
Fixed :)
How to reproduce ?
What happens ?
Quo crashes: Uncaught TypeError: undefined is not a function quo.debug.js:804
Line 804 is:
$$(document).ready(function() { return _listenTouches(); });
_listenTouches is defined just below. Moving the ready() call at the end of the closure right before return _hold =... fixes this first problem.
After this fix the lib crashes because _listenTouches() calls $$.fn.bind which calls $$.fn.each which isn't defined yet. Replacing the call:
return this.each(function() { _subscribe(this, event, callback); });
with:
return this.forEach(function(element) { _subscribe(element, event, callback); });
definitely fixes the problem.