grunt-terrific-modules
Version:
A grunt module generator for terrific modules
58 lines (47 loc) • 965 B
JavaScript
(function ($) {
'use strict';
/**
* T_Skin Skin implementation for the module T_Module.
*
* @author T_author
* @namespace T.Module.T_Module
* @class T_Skin
* @extends T.Module
* @constructor
*/
T.Module.T_Module.T_Skin = T.createDecorator({
/**
* executed on application.start()
* extended (decorated) lifecycle method
*
* @method start
* @return {void}
* @constructor
* @param {Function} resolve the callback after module start
* @param {Function} reject
*/
start : function (resolve, reject) {
this._parent.start(resolve, reject);
// add your code here
// ..
},
/**
* executed on application.stop()
*
* @return void
*/
stop: function() {
// Do stuff here or remove method
//...
},
/**
* emitted when the start method of all modules has been run
*
* @return void
*/
sync: function () {
// Do stuff here or remove method
//...
}
});
})(jQuery);