Skip to content

Working with other plugins

Adam Krebs edited this page Oct 14, 2013 · 1 revision

Stickit

Pass your object in as the second argument to this.stickit or set as this.model of the view.

You will need to alias Backbone.Attributes' getAttribute/setAttribute as get/set for parity with Model, and you must implement or borrow an escape method if you request escaped bindings (or alternatively make a good case to include in Backbone.Attributes).

If you have multiple stickit views, the object needs a unique cid property, which you can generate yourself.

http://jsfiddle.net/aacPc/

Clone this wiki locally