skuid.model.Model.save() and skuid.model.Model.updateData() method signatures

Joseph OrtizJoseph Ortiz Member
edited December 2017 in Questions
Hello!

Skuid is awesome.

Something I noticed with the API for the skuid.model.Model.

Any thoughts on the design decision for the model.save() and model.updateData() method signatures?

I noticed that the skuid.model.Model.save() takes an object with a property with the callback function.

For skuid.model.Model.updateData() the method signature just takes a function callback and NOT an object.

Since they are both CRUD operation, I would have expected the signature to be the same. I spent a couple minutes not understanding why my callback in the save() method wasn't executing. I checked out the documentation and was able to fix it.


Sign In or Register to comment.