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)