Created
November 4, 2015 19:01
-
-
Save mrgenixus/3337b44cd499d4cbf439 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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