diff --git a/bi/base.js b/bi/base.js index 86db12a7f..02bbd5fbb 100644 --- a/bi/base.js +++ b/bi/base.js @@ -4006,7 +4006,7 @@ BI.Navigation = BI.inherit(BI.Widget, { } }, - _assertCard: function () { + _assertCard: function (v) { if (!this.layout.isCardExisted(v)) { var card = this.options.cardCreator(v); this.cardMap[v] = card; diff --git a/bi/core.js b/bi/core.js index b0b8f41bd..14b93d785 100644 --- a/bi/core.js +++ b/bi/core.js @@ -1904,9 +1904,6 @@ if (!window.BI) { } ; !(function ($, undefined) { - _.extend(BI, { - version: "2.0" - }); var traverse = function (func, context) { return function (value, key, obj) { return func.call(context, key, value, obj); diff --git a/dist/base.js b/dist/base.js index 86db12a7f..02bbd5fbb 100644 --- a/dist/base.js +++ b/dist/base.js @@ -4006,7 +4006,7 @@ BI.Navigation = BI.inherit(BI.Widget, { } }, - _assertCard: function () { + _assertCard: function (v) { if (!this.layout.isCardExisted(v)) { var card = this.options.cardCreator(v); this.cardMap[v] = card; diff --git a/dist/core.js b/dist/core.js index bf97615c7..ff5a7c5c5 100644 --- a/dist/core.js +++ b/dist/core.js @@ -13046,9 +13046,6 @@ if (!window.BI) { } ; !(function ($, undefined) { - _.extend(BI, { - version: "2.0" - }); var traverse = function (func, context) { return function (value, key, obj) { return func.call(context, key, value, obj); @@ -25033,7 +25030,7 @@ _.extend(BI, { Top: "top", Bottom: "bottom" } -});/** +});BI.version = "2.0";/** * absolute实现的居中布局 * @class BI.AbsoluteCenterLayout * @extends BI.Layout diff --git a/src/base/combination/navigation.js b/src/base/combination/navigation.js index 3ef882581..7f4cbf3eb 100644 --- a/src/base/combination/navigation.js +++ b/src/base/combination/navigation.js @@ -99,7 +99,7 @@ BI.Navigation = BI.inherit(BI.Widget, { } }, - _assertCard: function () { + _assertCard: function (v) { if (!this.layout.isCardExisted(v)) { var card = this.options.cardCreator(v); this.cardMap[v] = card; diff --git a/src/core/base.js b/src/core/base.js index cdee5f2d5..9a39342cf 100644 --- a/src/core/base.js +++ b/src/core/base.js @@ -9,9 +9,6 @@ if (!window.BI) { } ; !(function ($, undefined) { - _.extend(BI, { - version: "2.0" - }); var traverse = function (func, context) { return function (value, key, obj) { return func.call(context, key, value, obj); diff --git a/src/core/version.js b/src/core/version.js new file mode 100644 index 000000000..a850da743 --- /dev/null +++ b/src/core/version.js @@ -0,0 +1 @@ +BI.version = "2.0"; \ No newline at end of file