alloy
Version:
TiDev Titanium MVC Framework
9 lines (8 loc) • 342 B
JavaScript
$.movies.addEventListener('close', function() {
// Since we are referencing a global collection for our bindings,
// make sure to call $.destroy() when you are done with the
// controller/window. This will ensure that no memory is
// leaked and that the bindings are properly released.
$.destroy();
});
Alloy.Collections.movies.fetch();