Progress with params in methods

This commit is contained in:
Devine Lu Linvega
2017-03-22 15:29:37 -07:00
parent 3f17f37458
commit 1bd42e15c8
6 changed files with 36 additions and 24 deletions

View File

@@ -104,4 +104,12 @@ function Command(content)
}
return a;
}
this.method = function(name)
{
for(i in this.methods()){
var m = new Method(this.methods()[i]);
if(m.name == name){ return m; }
}
}
}