Note that there are some explanatory texts on larger screens.

plurals
  1. POBackbone.js - two PUTs
    primarykey
    data
    text
    <p>Good morning!</p> <p>I use Backbone.js 0.9.2 (and CakePHP). My model has 4 fields: <code>id</code>, <code>name</code>, <code>description</code> and <code>image_id</code>. I add models with a <code>name</code> and a <code>description</code> and get the <code>id</code> and <code>image_id</code> from the server response and the proper change events fire (<code>name</code> and <code>description</code> first and <code>id</code> and <code>image_id</code> later).</p> <p>Now, when I edit something two PUTs are sent (the resource in this case is <code>CookingUtensils/144</code>). <a href="http://img829.imageshack.us/img829/7246/20120818101008.png" rel="nofollow noreferrer">http://img829.imageshack.us/img829/7246/20120818101008.png</a></p> <p>I see one <code>change</code> event for the field I edited and another general one (<code>change</code> only and not <code>change:description</code>, <code>change:name</code> etc). I don't understand why. Both PUT requests have exactly the same body.</p> <ul> <li>My model: <a href="https://gist.github.com/3385347" rel="nofollow noreferrer">https://gist.github.com/3385347</a></li> <li>My views: <a href="https://gist.github.com/3385345" rel="nofollow noreferrer">https://gist.github.com/3385345</a></li> <li>My collection: <a href="https://gist.github.com/3385344" rel="nofollow noreferrer">https://gist.github.com/3385344</a></li> </ul> <p>I simply cannot figure out what is going on. Thank you for reading. Any help would be greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload