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:
Frank Rehwinkel committed 2017-05-04 15:58:47 -04:00
1 parent d0cd976246
commit 6183f8d4e9
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}