mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-04 16:12:58 +00:00
Fixed: Check if global function exists in correct way
This commit is contained in:
1 parent
63dac5553e
commit
b8b96a17d7
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user