Search code examples
backbone.jsbackbone-stickit

how to make backbone.stickit collect all values at once?


Problem:

I used backbone.stickit to do 2 way binding for the form. however, I found it hard to cancel the collection unless I set updateModel to false for all attributes. so, the issue is, how can i grab all the values from the form when user click save button.

A.K.A how do i manually collect data all at once in stickit?

I tried to access it to get all handlers so I can trigger manually, but apparently, since getConfiguration function is private, i do not have access to it.


Solution

  • Take a look at Backbone.trackit - it was designed to help manage unsaved attributes, and works well with stickit.