Skip to content

Instantly share code, notes, and snippets.

@zvineyard
Created April 30, 2013 22:28
Show Gist options
  • Save zvineyard/5492440 to your computer and use it in GitHub Desktop.
Save zvineyard/5492440 to your computer and use it in GitHub Desktop.
The basics of a custom Titanium model.
function Model() {
this.init = function() {
alert('model init');
}
}
module.exports = function() {
return new Model();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment