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