Skip to content

Instantly share code, notes, and snippets.

@mrgenixus
Created November 4, 2015 19:01
Show Gist options
  • Save mrgenixus/3337b44cd499d4cbf439 to your computer and use it in GitHub Desktop.
Save mrgenixus/3337b44cd499d4cbf439 to your computer and use it in GitHub Desktop.
var Backbone = require('backbone');
var _ = require('underscore');
var MVCObject = function MVCObject() {
if(_.isFunction(this.initialize)) {
this.initialize.apply(this, arguments);
}
};
_.extend(MVCObject.prototype, Backbone.Events);
MVCObject.extend = Backbone.Model.extend;
module.exports = MVCObject;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment