Skip to content

Instantly share code, notes, and snippets.

@gcpantazis
gcpantazis / gist:2305089
Created April 4, 2012 19:49
Custom class types for Backbone.js
var CustomClass = Backbone.CustomClass = function(options) {
this.cid = _.uniqueId('CustomClass');
this._configure(options || {});
this.initialize.apply(this, arguments);
};
var classOptions = ['attributes'];
_.extend(CustomClass.prototype, null, {