I use backbone.js and rails. When backbone.js saves the model for the first time, the rails respond with a new id and backbone.js makes a set on the model with a new id.
http://documentcloud.github.com/backbone/docs/backbone.html#section-41
My problem: I cannot make this set silent. This set fires a change event that triggers the rendering of my view.
You can pass an option in the save method, so as not to trigger any events
model.save(null, { silent: true })
Source: https://habr.com/ru/post/904762/More articles:Remember xmlad workspace layout? - haskellHow can I combine free interfaces with functional style in Scala? - scalaNodeJS readFile () restore file name - javascriptHow to use instance variables defined in a controller in a view using ActiveAdmin? - ruby-on-railsWhat makes a web application convenient for touch applications? - designA month without leading zeros in Android - androidMicrosoft JScript runtime error: expected function - javascriptChanging a method that has "return" and "yield return" - c #Excel VBA VBA Runtime Error - excel-vbaShould I be associated with a DDMS message in the Eclipse console area? - androidAll Articles