Browse Source

refactor: 全局替换

es6
iapyang 5 years ago
parent
commit
d44080f5a3
  1. 2
      src/core/base.js
  2. 2
      src/core/foundation.js

2
src/core/base.js

@ -3,7 +3,7 @@
* Create By GUY 2014\11\17 * Create By GUY 2014\11\17
* *
*/ */
var _global; _global = undefined;
if (typeof window !== "undefined") { if (typeof window !== "undefined") {
_global = window; _global = window;
} else if (typeof global !== "undefined") { } else if (typeof global !== "undefined") {

2
src/core/foundation.js vendored

@ -4,7 +4,7 @@
/** /**
* 初始化BI对象 * 初始化BI对象
*/ */
var _global; _global = undefined;
if (typeof window !== "undefined") { if (typeof window !== "undefined") {
_global = window; _global = window;
} else if (typeof global !== "undefined") { } else if (typeof global !== "undefined") {

Loading…
Cancel
Save