3 ms·
This problem is very prevalent when concatenating JavaScript. The best defense is to prepend a semicolon before anonymous function closures. For example, see P
by tantalor 15y ago
This problem is very prevalent when concatenating JavaScript. The best defense is to prepend a semicolon before anonymous function closures.
For example, see Paul Irish's geo-location shim https://gist.github.com/366184 https://gist.github.com/366184