From a37ea6b994583a10eca91cc0e830574699fe5d31 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 9 Jul 2020 19:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E4=B8=A4=E4=B8=AAfineui?= =?UTF-8?q?=E4=B8=80=E8=B5=B7=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/ob.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; })();