Unsubscribe an event using javascript

How would I unsubscribe to an skuid event from javascript. Any help would be much appreciated.



Looks like the docs on the skuid.events.unsubscribe() method are incomplete — we’ll get that fixed.

Every call to skuid.events.subscribe() returns a subscription/handle which can be used to unsubscribe in the future, e.g.

var subscription = skuid.events.subscribe("models.loaded", function() { ... });<br>skuid.events.unsubscribe(subscription);

Thanks Zach! This is  helpful.