mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-11 11:07:07 +00:00
Added support to choose which compiler should be used when compiling in the browser. Default is old compiler but add "ObjJCompilerSetUsedVersion("objj_compiler2");" in the index.html (and/or index-debug.html) to use new compiler in browser.
This commit is contained in:
1 parent
26be5bf264
commit
0f3d5f4b10
3 files changed
+32
-15
No files matched your search
+14
-14
@@ -151,22 +151,22 @@ Executable.prototype.execute = function()
|
||||
CPLog("EXECUTION: " + this.URL());
|
||||
#endif
|
||||
|
||||
var fileDependencies = this.fileDependencies(),
|
||||
index = 0,
|
||||
count = fileDependencies.length;
|
||||
|
||||
for (; index < count; ++index)
|
||||
{
|
||||
var fileDependency = fileDependencies[index],
|
||||
isQuoted = fileDependency.isLocal(),
|
||||
URL = fileDependency.URL();
|
||||
|
||||
this.fileExecuter()(URL, isQuoted);
|
||||
}
|
||||
|
||||
if (this._compiler)
|
||||
{
|
||||
this.setCode(this._compiler.compilePass2());
|
||||
var fileDependencies = this.fileDependencies(),
|
||||
index = 0,
|
||||
count = fileDependencies.length;
|
||||
|
||||
for (; index < count; ++index)
|
||||
{
|
||||
var fileDependency = fileDependencies[index],
|
||||
isQuoted = fileDependency.isLocal(),
|
||||
URL = fileDependency.URL();
|
||||
|
||||
this.fileExecuter()(URL, isQuoted);
|
||||
}
|
||||
|
||||
this.setCode(this._compiler.compilePass2());
|
||||
this._compiler = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user