diff --git a/Cocoa/Classes/AtomWindowController.m b/Cocoa/Classes/AtomWindowController.m index 27bf20a70..71dbaefc9 100644 --- a/Cocoa/Classes/AtomWindowController.m +++ b/Cocoa/Classes/AtomWindowController.m @@ -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"]; diff --git a/src/bootstrap.coffee b/src/test.coffee similarity index 68% rename from src/bootstrap.coffee rename to src/test.coffee index ed51558e2..9ec631d98 100644 --- a/src/bootstrap.coffee +++ b/src/test.coffee @@ -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'