Skip to content

Instantly share code, notes, and snippets.

@tobowers
Created September 2, 2008 20:13
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 tobowers/8453 to your computer and use it in GitHub Desktop.
Save tobowers/8453 to your computer and use it in GitHub Desktop.
Message = MBX.JsModel.create("Message", {
iAmAClassAttribute: '',
instanceMethods: {
defaults: {
content: "I'm default content"
},
iAmAnInstanceMethod: function () {
//this.doSomething;
},
beforeCreate: function () {},
afterCreate: function () {}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment