Skip to content

Commit

Permalink
Updated to latest JSCocoa version
Browse files Browse the repository at this point in the history
  • Loading branch information
onecrayon committed Jul 8, 2010
1 parent 723783e commit 1cb92f3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions JSCocoa.framework/Versions/A/Headers/JSCocoa.h
Expand Up @@ -6,4 +6,6 @@
// Copyright 2008 __MyCompanyName__. All rights reserved.
//


#define JSCOCOA
#import "JSCocoaController.h"
5 changes: 5 additions & 0 deletions JSCocoa.framework/Versions/A/Headers/JSCocoaController.h
Expand Up @@ -81,6 +81,11 @@ typedef struct JSValueRefAndContextRef JSValueRefAndContextRef;
//
// Evaluation
//
- (id)eval:(NSString*)script;
- (id)callFunction:(NSString*)name;
- (id)callFunction:(NSString*)name withArguments:(NSArray*)arguments;
- (BOOL)hasFunction:(NSString*)name;

- (BOOL)evalJSFile:(NSString*)path;
- (BOOL)evalJSFile:(NSString*)path toJSValueRef:(JSValueRef*)returnValue;
- (JSValueRef)evalJSString:(NSString*)script;
Expand Down
Binary file modified JSCocoa.framework/Versions/A/JSCocoa
Binary file not shown.
7 changes: 6 additions & 1 deletion JSCocoa.framework/Versions/A/Resources/class.js
Expand Up @@ -761,6 +761,7 @@
{
__lintTokens.push(token)
}
if (!('JSLintWithLogs' in this)) JSLintWithLogs = function () { return function () {} }
var __JSLINT = JSLintWithLogs({ logToken : __logToken })
var __jslint = __JSLINT()
var __lintTokens
Expand Down Expand Up @@ -1104,7 +1105,11 @@
v += '('
}
else
if (!useAutoCall) v += '()'
{
if (token.isObjCSuperCall) v = "'" + v + "'" + ', new Array()'
else
if (!useAutoCall) v += '()'
}
}
// Selector part : ignore name and add ',' separator
if (token.isObjCMultiCall)
Expand Down

0 comments on commit 1cb92f3

Please sign in to comment.