From d85e8798c282530e2d8bbcb6b4a152b0eb281b79 Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Mon, 8 Mar 2010 15:00:52 -0800 Subject: [PATCH] Create the args and namedArgs objects in Bootstrap.js, pass them along up to CPApplication. --- AppKit/CPApplication.j | 44 +++++++++++++--------------------------- Objective-J/Bootstrap.js | 31 +++++++++++++++++++++++++++- 2 files changed, 44 insertions(+), 31 deletions(-) diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j index 7e5b948f1..cc588284b 100644 --- a/AppKit/CPApplication.j +++ b/AppKit/CPApplication.j @@ -973,10 +973,9 @@ CPRunContinuesResponse = -1002; [self endSheet:sheet returnCode:0]; } - - (CPArray)arguments { - if(_fullArgsString != window.location.hash) + if(_fullArgsString !== window.location.hash) [self _reloadArguments]; return _args; @@ -1009,12 +1008,18 @@ CPRunContinuesResponse = -1002; - (void)_reloadArguments { _fullArgsString = window.location.hash; - var args = _fullArgsString.replace("#", "").split("/").slice(0); - for(var i=0, count = args.length; i