Browse Source

Pull request #2603: 无JIRA任务 refactor: 解决严格模式下的报错

Merge in VISUAL/fineui from ~ZHENFEI.LI/fineui:master to master

* commit '44a9caa205a078b2b64913c3d263eae4731902a1':
  无JIRA任务 refactor: 解决严格模式下的报错
es6
Zhenfei.Li 3 years ago
parent
commit
3b4f239c33
  1. 2
      src/base/single/input/file.js
  2. 7
      src/core/0.foundation.js
  3. 14
      src/core/2.base.js

2
src/base/single/input/file.js

@ -97,7 +97,7 @@
split = "onabort.onerror.onloadstart.onprogress".split("."),
length = split.length,
CRLF = "\r\n",
xhr = this.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP"),
xhr = XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP"),
sendFile;
// FireFox 3+, Safari 4 beta (Chrome 2 beta file is buggy and will not work)

7
src/core/0.foundation.js vendored

@ -4,7 +4,7 @@
/**
* 初始化BI对象
*/
_global = undefined;
var _global = undefined;
if (typeof window !== "undefined") {
_global = window;
} else if (typeof global !== "undefined") {
@ -14,6 +14,11 @@ if (typeof window !== "undefined") {
} else {
_global = this;
}
if (_global) {
_global._global = _global;
}
if (_global.BI == null) {
_global.BI = {prepares: []};
}

14
src/core/2.base.js

@ -3,20 +3,6 @@
* Create By GUY 2014\11\17
*
*/
_global = undefined;
if (typeof window !== "undefined") {
_global = window;
} else if (typeof global !== "undefined") {
_global = global;
} else if (typeof self !== "undefined") {
_global = self;
} else {
_global = this;
}
if (!_global.BI) {
_global.BI = {};
}
!(function (undefined) {
var traverse = function (func, context) {
return function (value, key, obj) {

Loading…
Cancel
Save