Progress with params in methods
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
function Method(name,params)
|
||||
function Method(method_str)
|
||||
{
|
||||
Unit.call(this);
|
||||
|
||||
this.name = name;
|
||||
this.params = params;
|
||||
var content = method_str.split(":");
|
||||
this.name = content.shift();
|
||||
this.params = content;
|
||||
this.example = "";
|
||||
|
||||
this.render = function()
|
||||
{
|
||||
var s = name+":";
|
||||
for(param in this.params){
|
||||
s += this.params[param]+","
|
||||
s += this.params[param]+":"
|
||||
}
|
||||
s = s.substr(0,s.length-1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user