Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
overloading constructor
function Event(kind, method, url, data) {
this.kind = kind;
this.method = method;
this.url = url;
this.data = data;
this.milliseconds = new Date().getTime();
};
/*
function Event( obj ) {
this.kind = obj.kind;
this.method = obj.method;
this.url = obj.url;
this.data = obj.data;
this.milliseconds = obj.milliseconds;
};
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.