14
edits
m (→Example) |
|||
| Line 237: | Line 237: | ||
_init: function FooTracker_init() { | _init: function FooTracker_init() { | ||
// The ugly syntax on the next line calls the base class's init method: | // The ugly syntax on the next line calls the base class's init method: | ||
this.__proto__.__proto__. | this.__proto__.__proto__._init.call(this); | ||
/* Here is where you would register your tracker as an observer, so that | /* Here is where you would register your tracker as an observer, so that | ||
its onEvent() (or other appropriately named) method can be called | its onEvent() (or other appropriately named) method can be called | ||
edits