diff --git a/src/core/ob.js b/src/core/ob.js index d875389e2..ed8ac8744 100644 --- a/src/core/ob.js +++ b/src/core/ob.js @@ -28,10 +28,10 @@ * @class BI.OB * @abstract */ - BI.OB = BI.OB || function (config) { + var OB = function (config) { this._constructor(config); }; - _.defaults(BI.OB.prototype, { + _.extend(OB.prototype, { props: {}, init: null, destroyed: null, @@ -184,4 +184,5 @@ this.purgeListeners(); } }); + BI.OB = BI.OB || OB; })();