mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 10:43:50 +00:00
Fix aClass.protocol_list syntax
A long standing bug that never mattered because each class is initialized with a protocol_list set to an empty array. This is not the case for the protocol objects but there the syntax was correct already.
This commit is contained in:
1 parent
d0cd976246
commit
6183f8d4e9
1 file changed
+1
-1
@@ -322,7 +322,7 @@ GLOBAL(class_addProtocol) = function(/*Class*/ aClass, /*Protocol*/ aProtocol)
|
||||
return;
|
||||
}
|
||||
|
||||
(aClass.protocol_list || (aClass.protocol_list == [])).push(aProtocol);
|
||||
(aClass.protocol_list || (aClass.protocol_list = [])).push(aProtocol);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user