mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
kill bootstrap - require.js is the only special case.
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
}
|
||||
else {
|
||||
NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
|
||||
NSString *bootstrapPath = [resourcePath stringByAppendingString:@"/src/bootstrap.js"];
|
||||
NSString *bootstrapPath = [resourcePath stringByAppendingString:@"/src/require.js"];
|
||||
NSString *coffeePath = [resourcePath stringByAppendingString:@"/vendor/coffee-script.js"];
|
||||
JSCocoa* jsc = [[JSCocoa alloc] initWithGlobalContext:[[webView mainFrame] globalContext]];
|
||||
[jsc setObject:self withName:@"WindowController"];
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
# This file is the first thing loaded on startup.
|
||||
|
||||
# load require() function
|
||||
root = OSX.NSBundle.mainBundle.resourcePath
|
||||
code = OSX.NSString.stringWithContentsOfFile path = "#{root}/src/require.js"
|
||||
__jsc__.evalJSString_withScriptPath code, path
|
||||
|
||||
# TODO: turn these into real unit tests
|
||||
OSX.NSLog 'require tests:'
|
||||
OSX.NSLog require.resolve 'underscore'
|
||||
Reference in New Issue
Block a user