Created
March 25, 2015 11:24
-
-
Save puumuki/2f9d5a40d8f3a3f21886 to your computer and use it in GitHub Desktop.
js: backbone: model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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