diff --git a/src/core/shortcut.js b/src/core/shortcut.js index ee05228f36..c579b58844 100644 --- a/src/core/shortcut.js +++ b/src/core/shortcut.js @@ -6,6 +6,19 @@ } kv[xtype] = cls; }; + + BI.mixin = function (xtype, mixins) { + var cls; + if (BI.isNull(mixins) && BI.isPlainObject(xtype)) { + cls = BI.OB; + mixins = xtype; + BI.extend(cls.prototype, mixins); + return; + } + cls = kv[xtype]; + BI.extend(cls.prototype, mixins); + }; + // 根据配置属性生成widget var createWidget = function (config) { if (config["classType"]) {