From b8b96a17d732bd3b7af90bc2b73a966de52867bf Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Thu, 22 Aug 2013 12:34:14 +0200 Subject: [PATCH] Fixed: Check if global function exists in correct way --- Objective-J/ObjJAcornCompiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objective-J/ObjJAcornCompiler.js b/Objective-J/ObjJAcornCompiler.js index 099bc04d9..a801cdc6a 100644 --- a/Objective-J/ObjJAcornCompiler.js +++ b/Objective-J/ObjJAcornCompiler.js @@ -499,7 +499,7 @@ ObjJAcornCompiler.prototype.getClassDef = function(/* String */ aClassName) if (c) return c; - if (objj_getClass) + if (typeof objj_getClass === 'function') { var aClass = objj_getClass(aClassName); if (aClass) @@ -547,7 +547,7 @@ ObjJAcornCompiler.prototype.getProtocolDef = function(/* String */ aProtocolName if (p) return p; - if (objj_getProtocol) + if (typeof objj_getProtocol === 'function') { var aProtocol = objj_getProtocol(aProtocolName); if (aProtocol)