Skip to content

Upgrading to gaffa 1.13.0

Kory Nunn edited this page Jul 24, 2014 · 1 revision

Breaking changes

all instances of Action now have a .condition property, defaulted to true. The action will not trigger if the condition resolves in a falsey value.

this means the gaffa-conditional action has been depricated due to the conflicting way it checked its condition. The same result can be achieved using the .condition property, or gaffa-switch.

actions can be marked as explicitly async to ensure they are not automatically debound immediately after their trigger function is called.

function SomeAction(){}
...
SomeAction.prototype._async = true;

This is useful for actions such as gaffa-request.

gaffa.model.bind and gaffa.model.debind have been removed, as they served no purpose externally.

Fixes

A rather large memory leak has been patched.