Skip to content

Instantly share code, notes, and snippets.

@puumuki
Created March 25, 2015 11:24
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 puumuki/2f9d5a40d8f3a3f21886 to your computer and use it in GitHub Desktop.
Save puumuki/2f9d5a40d8f3a3f21886 to your computer and use it in GitHub Desktop.
js: backbone: model
define(function (require) {
var Model = require('model');
/**
* ExampleModel (= tila)
* @namespace models.<package>
* @class ExampleModel
* @extends Backbone.Model
* @constructor
*/
var ExampleModel = Model.extend({
defaults: {
/**
* @property attribute
* @type String
* ennakko
*/
attribute: null,
},
validations: {
}
parse: function(json) {
return json;
}
});
return ExampleModel;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment