Connector.prototype= { execute:function(data) { d=new Array(); d[this.module]=data; this.result=null; _front_api_obj.xroute(d); this.result=_front_api_obj.result; } , executeinc:function(data) { d=new Array(); d[this.module]=data; this.result=null; _front_api_obj.incroute(d); this.result=_front_api_obj.result; } } function Connector(module) { this.module=module; this.result=null; }