mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-04 16:12:58 +00:00
Fixed: Get class method instead of instance method
When asking a protocol for a specific class method we asked each super protocol for an instance method. Thanks Frank for finding this!
This commit is contained in:
1 parent
f18074bf49
commit
d0cd976246
1 file changed
+1
-1
@@ -584,7 +584,7 @@ ProtocolDef.prototype.getClassMethod = function(name) {
|
||||
|
||||
for (var i = 0, size = protocols.length; i < size; i++) {
|
||||
var protocol = protocols[i],
|
||||
method = protocol.getInstanceMethod(name);
|
||||
method = protocol.getClassMethod(name);
|
||||
|
||||
if (method)
|
||||
return method;
|
||||
|
||||
Reference in new issue
Block a user