]>
Commit | Line | Data |
---|---|---|
1 | Class("Unlimitedpizza").inherits(Widget)({ | |
2 | prototype : { | |
3 | _loaded : false, | |
4 | ||
5 | init : function (config) { | |
6 | Widget.constructor.prototype.init.call(this, config) | |
7 | ||
8 | this._bindInternalEvents(); | |
9 | }, | |
10 | ||
11 | _bindInternalEvents : function bindInternalEvents() { | |
12 | this.bind('activate', this._onActivate.bind(this)); | |
13 | this.bind('deactivate', this._onDeactivate.bind(this)); | |
14 | }, | |
15 | ||
16 | _onActivate : function _activate() { | |
17 | if (!this._loaded) { | |
18 | this._load(); | |
19 | } | |
20 | }, | |
21 | ||
22 | _load : function _load() { | |
23 | var meltyCheese; | |
24 | ||
25 | meltyCheese = new Unlimitedpizza.MeltyCheese | |
26 | } | |
27 | } | |
28 | }); |