Closed DallanQ closed 12 years ago
right. this bullshit is because of zepto maintainers somehow don't like semicolons (lol wat?).
I've modified brunch to auto-add semicolons after every vendor file. New version wasn't released yet but you can get it via npm install -g git://github.com/brunch/brunch.git
. Or you can append semicolon after zepto.js.
That did it! Good idea about auto-adding semicolons. Thanks.
I followed the instructions in the readme to run the application (using brunch w -s option), but I'm getting a "not a function" error at line 1455 in vendor.js. Specifically, in chrome the error is "Uncaught TypeError: undefined is not a function"; in Firefox, firebug highlights the last snippet of Zepto code from line 1366-1446 and complains that it is not a function.
It appears to have something to do with an interaction between javascript's semicolon placement, zepto use of semicolons, and how the vendor.js file is generated by brunch (I have version 1.2.2). I notice that the function definitions in zepto all use the style:
Notice there is no semicolon between the last line in zepto and the first line in underscore. If I manually add a semicolon to the beginning of the underscore "(function() {" line above in vendor.js, everything works.