generator-xtc
Version:
A generator for xtc projects
27 lines (25 loc) • 673 B
JavaScript
(function($) {
/**
* <%= nameSkinJs %> Skin implementation for the <%= nameModuleJs %> module.
*
* @author <%= user %>
* @namespace Tc.Module.<%= nameModuleJs %>
* @class <%= nameSkinJs %>
* @extends Tc.Module
* @constructor
*/
Tc.Module.<%= nameModuleJs %>.<%= nameSkinJs %> = function(parent) {
/**
* override the appropriate methods from the decorated module (ie. this.get = function()).
* the former/original method may be called via parent.<method>()
*/
this.on = function(callback) {
// calling parent method
parent.on(callback);
};
this.after = function() {
// calling parent method
parent.after();
};
};
})(Tc.$);