Skip to content

Instantly share code, notes, and snippets.

@garrettwilkin
Created August 29, 2012 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garrettwilkin/3513554 to your computer and use it in GitHub Desktop.
Save garrettwilkin/3513554 to your computer and use it in GitHub Desktop.
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