Clamp.js icon indicating copy to clipboard operation
Clamp.js copied to clipboard

Current minified source does not compile on Chrome

Open giles-v opened this issue 11 years ago • 3 comments

Uncaught SyntaxError: Unexpected token ( at line 8. To reproduce: create an HTML file along these lines:

<!DOCTYPE html>
<html>
    <head>
        <script src="clamp.min.js"></script>
    </head>
    <body>
        Test
    </body>
</html>

Run it in in a local webserver in Chrome and observe the error in the JS console.

giles-v avatar Jul 03 '13 19:07 giles-v

+1

SirZach avatar Sep 06 '13 22:09 SirZach

Probably the same issue... In Firefox:

SyntaxError: function statement requires a name
function(){window.$clamp=function(e,g){var m,k,j,r;function s(a,b){i

cloakedninjas avatar Sep 17 '13 16:09 cloakedninjas

+1

travisbotello avatar Oct 16 '13 08:10 travisbotello