From 96eebc7d1dc262e67db19d0dcc3bbee3f5d5dbb0 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Wed, 27 Jan 2010 03:16:46 -0800 Subject: [PATCH] Fix for accidentally removing Executable.fileDependencies. Reviewed by me. --- Objective-J/Constants.js | 8 ++++++++ Objective-J/Executable.js | 8 +++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Objective-J/Constants.js b/Objective-J/Constants.js index 35af641f0..8f3eae4ee 100644 --- a/Objective-J/Constants.js +++ b/Objective-J/Constants.js @@ -6,6 +6,14 @@ exports.environments = function() return ENVIRONMENTS; } +if (window) +{ + window.setNativeTimeout = window.setTimeout; + window.clearNativeTimeout = window.clearTimeout; + window.setNativeInterval = window.setInterval; + window.clearNativeInterval = window.clearNativeInterval; +} + // Objective-J Constants var NO = false, YES = true, diff --git a/Objective-J/Executable.js b/Objective-J/Executable.js index 21b9ceeeb..f73bc3fd2 100644 --- a/Objective-J/Executable.js +++ b/Objective-J/Executable.js @@ -3,7 +3,7 @@ * Objective-J * * Created by Francisco Tolmasky. - * Copyright 2008, 280 North, Inc. + * Copyright 2010, 280 North, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -64,9 +64,6 @@ function Executable(/*String*/ aCode, /*Array*/ fileDependencies, /*String*/ aSc //} this._function.displayName = this._scope; #endif - -if (code.indexOf("/Users/tolmasky/Desktop/LoadTest/main.j/**/") !== -1) - throw "why?"; } Executable.prototype.path = function() @@ -105,8 +102,9 @@ Executable.prototype.code = function() return this._code; } -Executable.prototype.filePathDependencies = function() +Executable.prototype.fileDependencies = function() { + return this._fileDependencies; } Executable.prototype.scope = function()