guy 7 years ago
parent
commit
b0abb06e11
  1. 14
      bi/core.js
  2. 14
      dist/bundle.js
  3. 6
      dist/bundle.min.js
  4. 14
      dist/core.js
  5. 14
      src/core/base.js

14
bi/core.js

@ -12195,10 +12195,16 @@ if (!window.BI) {
//浏览器相关方法
_.extend(BI, {
isIE: function () {
return /(msie|trident)/i.test(navigator.userAgent.toLowerCase());
if (this.__isIE == null) {
this.__isIE = /(msie|trident)/i.test(navigator.userAgent.toLowerCase());
}
return this.__isIE;
},
getIEVersion: function () {
if (this.__IEVersion != null) {
return this.__IEVersion;
}
var version = 0;
var agent = navigator.userAgent.toLowerCase();
var v1 = agent.match(/(?:msie\s([\w.]+))/);
@ -12212,7 +12218,7 @@ if (!window.BI) {
} else {
version = 0;
}
return version;
return this.__IEVersion = version;
},
isIE9Below: function () {
@ -12222,10 +12228,6 @@ if (!window.BI) {
return this.getIEVersion() < 9;
},
isIE9: function () {
return this.getIEVersion() === 9;
},
isEdge: function () {
return /edge/i.test(navigator.userAgent.toLowerCase());
},

14
dist/bundle.js vendored

@ -12195,10 +12195,16 @@ if (!window.BI) {
//浏览器相关方法
_.extend(BI, {
isIE: function () {
return /(msie|trident)/i.test(navigator.userAgent.toLowerCase());
if (this.__isIE == null) {
this.__isIE = /(msie|trident)/i.test(navigator.userAgent.toLowerCase());
}
return this.__isIE;
},
getIEVersion: function () {
if (this.__IEVersion != null) {
return this.__IEVersion;
}
var version = 0;
var agent = navigator.userAgent.toLowerCase();
var v1 = agent.match(/(?:msie\s([\w.]+))/);
@ -12212,7 +12218,7 @@ if (!window.BI) {
} else {
version = 0;
}
return version;
return this.__IEVersion = version;
},
isIE9Below: function () {
@ -12222,10 +12228,6 @@ if (!window.BI) {
return this.getIEVersion() < 9;
},
isIE9: function () {
return this.getIEVersion() === 9;
},
isEdge: function () {
return /edge/i.test(navigator.userAgent.toLowerCase());
},

6
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

14
dist/core.js vendored

@ -12195,10 +12195,16 @@ if (!window.BI) {
//浏览器相关方法
_.extend(BI, {
isIE: function () {
return /(msie|trident)/i.test(navigator.userAgent.toLowerCase());
if (this.__isIE == null) {
this.__isIE = /(msie|trident)/i.test(navigator.userAgent.toLowerCase());
}
return this.__isIE;
},
getIEVersion: function () {
if (this.__IEVersion != null) {
return this.__IEVersion;
}
var version = 0;
var agent = navigator.userAgent.toLowerCase();
var v1 = agent.match(/(?:msie\s([\w.]+))/);
@ -12212,7 +12218,7 @@ if (!window.BI) {
} else {
version = 0;
}
return version;
return this.__IEVersion = version;
},
isIE9Below: function () {
@ -12222,10 +12228,6 @@ if (!window.BI) {
return this.getIEVersion() < 9;
},
isIE9: function () {
return this.getIEVersion() === 9;
},
isEdge: function () {
return /edge/i.test(navigator.userAgent.toLowerCase());
},

14
src/core/base.js

@ -1045,10 +1045,16 @@ if (!window.BI) {
//浏览器相关方法
_.extend(BI, {
isIE: function () {
return /(msie|trident)/i.test(navigator.userAgent.toLowerCase());
if (this.__isIE == null) {
this.__isIE = /(msie|trident)/i.test(navigator.userAgent.toLowerCase());
}
return this.__isIE;
},
getIEVersion: function () {
if (this.__IEVersion != null) {
return this.__IEVersion;
}
var version = 0;
var agent = navigator.userAgent.toLowerCase();
var v1 = agent.match(/(?:msie\s([\w.]+))/);
@ -1062,7 +1068,7 @@ if (!window.BI) {
} else {
version = 0;
}
return version;
return this.__IEVersion = version;
},
isIE9Below: function () {
@ -1072,10 +1078,6 @@ if (!window.BI) {
return this.getIEVersion() < 9;
},
isIE9: function () {
return this.getIEVersion() === 9;
},
isEdge: function () {
return /edge/i.test(navigator.userAgent.toLowerCase());
},

Loading…
Cancel
Save