javascript - model.save setting the url and making a call back on success -
i'm trying method work:
that.model.save(null, // i'm calling that.model because nested in method { url: 'some url', success: function(model, response) { // update stuff }, error: function(model, response) { // throw error. } });
but reason not call success method or error method. comments i'm calling methods... don't want specifics of methods i'm calling. save method works, not call eater of methods.
also if try , call method alrady made like:
success: that.somemethod()
javascript throws: uncaught typeerror: illegal invocation
any appreciated.
the method looks fine uses same arguments backbone describes:
model.save([attributes], [options])
the scenario success/error handlers being overridden somewhere prototype chain , not calling handlers.
Comments
Post a Comment