diff --git a/id.js b/id.js index b829bda..68a2dfa 100644 --- a/id.js +++ b/id.js @@ -133,7 +133,11 @@ proto.methods = function methods (maxDepth, sort) { , md = maxDepth || 1 , depth = 0 while (c && depth++ < md) { - rtn.push.apply(rtn, c.getInstanceMethods()) + var ms = c.getInstanceMethods() + , i = ms.length + while (i--) { + if (!~rtn.indexOf(ms[i])) rtn.push(ms[i]); + } c = c.getSuperclass() } return sort === false ? rtn : rtn.sort()