mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +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:
@@ -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