Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Google Closure events wiring
myApp.Event = function(){};
goog.inherits(myApp.Event, goog.events.Event);
// --- in another file --- //
myApp.ClassOne = function(){
goog.base(this);
var eventObj = {
valueId: id,
type: myApp.ClassOne.EventType.INSTANCIATED // is this the path of the enum?
};
this.dispatchEvent(eventObj);
};
goog.inherits(myApp.ClassOne, goog.events.EventTarget);
// --- in yet another file --- //
/**
* Triggers on class instanciation
*
* @param {goog.events.Event} e <-- ???
* @private
*/
my.app.GoodView.prototype._onInstanciation = function(e) {
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment