UNPKG

generator-stacked

Version:
35 lines (20 loc) 674 B
// IndexModel.js define(["jquery", "backbone"], function($, Backbone) { // Creates a new Backbone Model class object var <%= initName %>Model = Backbone.Model.extend({ url: '', // Model Constructor initialize: function() { }, // Default values for all of the Model attributes defaults: { }, // Gets called automatically by Backbone when the set and/or save methods are called (Add your own logic) validate: function(attrs) { } }); // Returns the Model class return <%= initName %>Model; } );