UNPKG

generator-beez

Version:
83 lines (73 loc) 2.34 kB
/** * @name index.js<beez-mymodule/view> * @author Octo Cat <octo@example.com> * @fileOverview beez-mymodule view */ (function (global) { define(function (require, exports, module) { 'use strict'; var beez = require('beez'); var logger = beez.getLogger('beez.mymodule.view'); /** * @class */ var View = View.extend( 'beez.mymodule.view', { vidx: 'beez.mymodule', /** * initalize * @params {String} options.prefix * @params {Function} options.template */ initialize : function initialize(options) { // super View.__super__.initialize.apply(this, arguments); // normalize options = options || {}; /** * cache options * @type {Object} */ this.options = options; /** * vidx * {String} */ this.vidx = options.vidx || this.vidx; }, /** * called before rendering once */ beforeOnce: function () { View.__super__.beforeOnce.apply(this, arguments); }, /** * called before rendering */ before: function () { View.__super__.before.apply(this, arguments); }, /** * called after rendering once */ afterOnce: function () { View.__super__.afterOnce.apply(this, arguments); }, /** * callled after rendering */ after: function () { View.__super__.after.apply(this, arguments); }, /** * dispose */ dispose: function () { View.__super__.dispose.apply(this, arguments); } } ); return View; }); })(this);