Skip to content

Upgrading to gaffa 1.9.0 (and 1.8.0)

Kory Nunn edited this page Jun 30, 2014 · 1 revision

Breaking changes

Gaffa.addDefaultStyle

Gaffa.addDefaultStyle has been removed, as it was almost never used in practice. If you need similar functionality, check out default-style

view._removeHandlers

view._removeHandlers has been removed, due to the addition of consuela

What's new?

due to gaffa now using consuela on all constructors, you no longer need to care about cleaning up events bound to renderedElement, or any instance of ViewItem, Property, or ViewContainer.

If you want to make sure events get cleaned up for other elements, or any other emitter, you can, within any instance of ViewItem, Property, or ViewContainer, do:

this._watch(emitter/domNode);