-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Conversation
I personally prefer to have fewer files; would reduce program boot time & HD space. |
@tomByrer The problem though is that inline script elements are not permitted for chrome packaged apps (or extensions): http://developer.chrome.com/apps/app_csp.html |
I've also made some fixes that should fix the CI build failures due to JSLint errors as well as adding the std adobe license header (as copied from brackets.js). |
Ah, I see ty.
|
@tomByrer yes very good point! I've added that comment in. |
@maks I think you just need to fix the jsHint error and this can be merged in to master. You just need to move the || up to the previous line before the break. I know this is legacy but now that it's in a a js file it is getting scanned by Travis for jsHint failures. I would fix it but I don't want to commit to your private fork and I probably don't have permission to commit directly to it as-is. Here's a good jsHint discussion on Automatic Semicolon Insertion (ASI): http://stackoverflow.com/questions/2846283/what-are-the-rules-for-javascripts-automatic-semicolon-insertion-asi |
The second file |
Good Catch @TomMalbran. @maks please add copyright statement to xorigin.js. Thanks! |
@TomMalbran @JeffryBooher thanks both for the review. Having trailing operators is my preferred style as well and my local jshint was complaining about it to me as well - so happily fixed. |
@maks you're gonna hate me but I failed to notice that there were several lint errors in both of these files. Can you fix these and I will merge? |
@JeffryBooher no probs, happy to fix it, but I'm not seeing anymore JShint errors here on my local machine, could you let me know what errors you are getting? |
@maks, I found these by turning on JSLint in Brackets and opening the newly created JS files: in xorigin.js:
In dependencies.js
|
loop code in dependencies.js refactored to meet Brackets coding conventions.
because they need to brought in via require which shouldn't be used here.
Changes look good!
|
move inline js into external files
Merged |
chrome packaged apps are not allowed to use inline script elements and functionally there doesn't seem to be any reason to keep these as inline in index.html