Skip to content

Instantly share code, notes, and snippets.

@twalker
Created December 30, 2012 20:14
Show Gist options
  • Save twalker/4414849 to your computer and use it in GitHub Desktop.
Save twalker/4414849 to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[
/**
* ${1:name} model
*/
define(function(require, exports, module){
var Backbone = require('backbone');
return Backbone.Model.extend({
defaults: {
${0}
},
initialize: function(options){
},
validate: function(attrs){
}
});
});
]]></content>
<tabTrigger>bbm</tabTrigger>
<scope>source.js,source.js.embedded.html</scope>
<description>Backbone + RequireJS model definition</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment