ericabouaf / wireit

A javascript wiring library to create web wirable interfaces for dataflow applications, visual programming languages or graphical modeling.
http://neyric.github.io/wireit/docs/
Other
520 stars 90 forks source link

ajax.js incorrect isFunction call #59

Closed Christian-B closed 12 years ago

Christian-B commented 13 years ago

In the class ajax.js Lines 87 to 93 if( YAHOO.lang.isFunction(this.config[action].url) ) { method = this.config[action].method(value); } else { method = this.config[action].method; }

Should be

if( YAHOO.lang.isFunction(this.config[action].method) ) { method = this.config[action].method(value); } else { method = this.config[action].method;

}

This because it is likely that url is a function to add the tempSaceWiring (from WiringEditor) on to the url While the mthod remains static. Th