ufront / ufront-mvc

The core MVC framework that powers ufront
MIT License
17 stars 15 forks source link

ClientAction fails when no chaining #58

Closed postite closed 8 years ago

postite commented 8 years ago

this won't work:

var p=new PartialViewResult({val:"bip"},"index");
p.addClientAction(Loading);
return p;

an this will:

 return new PartialViewResult({val:"bip"},"index")
.addClientAction(Loading);
kevinresol commented 8 years ago

Because you have to return an instance of AddClientActionResult instead of PartialViewResult in order for your client action to work.