Skip to content

Instantly share code, notes, and snippets.

@chreekat
Created January 3, 2012 20:39
Show Gist options
  • Select an option

  • Save chreekat/1556821 to your computer and use it in GitHub Desktop.

Select an option

Save chreekat/1556821 to your computer and use it in GitHub Desktop.
Example of auto-generated Model definitions
YUI().use('model', function (Y) {
// Auto-generated from a 'Person' object in the back end
Y.PersonModel = Y.Base.create('personModel', Y.Model, [], {}, {
ATTRS: {
name: {},
email: {}
}
});
// Etc...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment