This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Description
As inspired by x-tags the clear separation of lifecycle callbacks and other custom properties.
var Apple = fm.define({
name: 'apple',
template: template,
lifecycle: {
initialize: function() {},
setup: function() {},
teardown: function() {},
destroy: function() {}
},
myAppleMethod: function() {}
});
or possible reverting to old style:
var Apple = fm.define({
name: 'apple',
template: template,
onInitialize: function() {},
onSetup: function() {},
onTeardown: function() {},
onDestroy: function() {}
myAppleMethod: function() {}
});
or titled callbacks:
var Apple = fm.define({
name: 'apple',
template: template,
callbacks: {
initialize: function() {},
setup: function() {},
teardown: function() {},
destroy: function() {}
},
myAppleMethod: function() {}
});