Browse Source

Merge pull request #1071 in VISUAL/fineui from ~KIRA/fineui:master to master

* commit 'ef84a03ef896963dde6bd013e359ab9c8863ac7f':
  KERNEL-741 chore: build
  KERNEL-741 refactor: BI.freeze兼容ie
es6
Kira 5 years ago
parent
commit
35e1efec5e
  1. 12
      dist/2.0/fineui.ie.js
  2. 6
      dist/2.0/fineui.ie.min.js
  3. 12
      dist/2.0/fineui.js
  4. 6
      dist/2.0/fineui.min.js
  5. 12
      dist/bundle.ie.js
  6. 6
      dist/bundle.ie.min.js
  7. 12
      dist/bundle.js
  8. 6
      dist/bundle.min.js
  9. 12
      dist/core.js
  10. 12
      dist/fineui.ie.js
  11. 6
      dist/fineui.ie.min.js
  12. 12
      dist/fineui.js
  13. 6
      dist/fineui.min.js
  14. 12
      dist/fineui_without_jquery_polyfill.js
  15. 12
      dist/utils.js
  16. 10
      dist/utils.min.js
  17. 12
      src/core/base.js

12
dist/2.0/fineui.ie.js vendored

@ -10650,14 +10650,12 @@ if (!_global.BI) {
},
freeze: function (value) {
if (Object.freeze) {
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
if (Object.freeze && BI.isObject(value)) {
return Object.freeze(value);
} else {
if (!BI.isObject(value)) {
throw new TypeError('Object.freeze can only be called on Objects.');
}
return value;
}
},
// 数字和字符串可以作为key
@ -10856,7 +10854,7 @@ if (!_global.BI) {
var pending = false;
var timerFunc;
function nextTickHandler() {
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks = [];
@ -10889,7 +10887,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick(cb) {
return function queueNextTick (cb) {
var _resolve;
var args = [].slice.call(arguments, 1);
callbacks.push(function () {

6
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/2.0/fineui.js vendored

@ -10650,14 +10650,12 @@ if (!_global.BI) {
},
freeze: function (value) {
if (Object.freeze) {
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
if (Object.freeze && BI.isObject(value)) {
return Object.freeze(value);
} else {
if (!BI.isObject(value)) {
throw new TypeError('Object.freeze can only be called on Objects.');
}
return value;
}
},
// 数字和字符串可以作为key
@ -10856,7 +10854,7 @@ if (!_global.BI) {
var pending = false;
var timerFunc;
function nextTickHandler() {
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks = [];
@ -10889,7 +10887,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick(cb) {
return function queueNextTick (cb) {
var _resolve;
var args = [].slice.call(arguments, 1);
callbacks.push(function () {

6
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/bundle.ie.js vendored

@ -10650,14 +10650,12 @@ if (!_global.BI) {
},
freeze: function (value) {
if (Object.freeze) {
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
if (Object.freeze && BI.isObject(value)) {
return Object.freeze(value);
} else {
if (!BI.isObject(value)) {
throw new TypeError('Object.freeze can only be called on Objects.');
}
return value;
}
},
// 数字和字符串可以作为key
@ -10856,7 +10854,7 @@ if (!_global.BI) {
var pending = false;
var timerFunc;
function nextTickHandler() {
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks = [];
@ -10889,7 +10887,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick(cb) {
return function queueNextTick (cb) {
var _resolve;
var args = [].slice.call(arguments, 1);
callbacks.push(function () {

6
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/bundle.js vendored

@ -10650,14 +10650,12 @@ if (!_global.BI) {
},
freeze: function (value) {
if (Object.freeze) {
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
if (Object.freeze && BI.isObject(value)) {
return Object.freeze(value);
} else {
if (!BI.isObject(value)) {
throw new TypeError('Object.freeze can only be called on Objects.');
}
return value;
}
},
// 数字和字符串可以作为key
@ -10856,7 +10854,7 @@ if (!_global.BI) {
var pending = false;
var timerFunc;
function nextTickHandler() {
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks = [];
@ -10889,7 +10887,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick(cb) {
return function queueNextTick (cb) {
var _resolve;
var args = [].slice.call(arguments, 1);
callbacks.push(function () {

6
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/core.js vendored

@ -10650,14 +10650,12 @@ if (!_global.BI) {
},
freeze: function (value) {
if (Object.freeze) {
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
if (Object.freeze && BI.isObject(value)) {
return Object.freeze(value);
} else {
if (!BI.isObject(value)) {
throw new TypeError('Object.freeze can only be called on Objects.');
}
return value;
}
},
// 数字和字符串可以作为key
@ -10856,7 +10854,7 @@ if (!_global.BI) {
var pending = false;
var timerFunc;
function nextTickHandler() {
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks = [];
@ -10889,7 +10887,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick(cb) {
return function queueNextTick (cb) {
var _resolve;
var args = [].slice.call(arguments, 1);
callbacks.push(function () {

12
dist/fineui.ie.js vendored

@ -10895,14 +10895,12 @@ if (!_global.BI) {
},
freeze: function (value) {
if (Object.freeze) {
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
if (Object.freeze && BI.isObject(value)) {
return Object.freeze(value);
} else {
if (!BI.isObject(value)) {
throw new TypeError('Object.freeze can only be called on Objects.');
}
return value;
}
},
// 数字和字符串可以作为key
@ -11101,7 +11099,7 @@ if (!_global.BI) {
var pending = false;
var timerFunc;
function nextTickHandler() {
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks = [];
@ -11134,7 +11132,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick(cb) {
return function queueNextTick (cb) {
var _resolve;
var args = [].slice.call(arguments, 1);
callbacks.push(function () {

6
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/fineui.js vendored

@ -10895,14 +10895,12 @@ if (!_global.BI) {
},
freeze: function (value) {
if (Object.freeze) {
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
if (Object.freeze && BI.isObject(value)) {
return Object.freeze(value);
} else {
if (!BI.isObject(value)) {
throw new TypeError('Object.freeze can only be called on Objects.');
}
return value;
}
},
// 数字和字符串可以作为key
@ -11101,7 +11099,7 @@ if (!_global.BI) {
var pending = false;
var timerFunc;
function nextTickHandler() {
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks = [];
@ -11134,7 +11132,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick(cb) {
return function queueNextTick (cb) {
var _resolve;
var args = [].slice.call(arguments, 1);
callbacks.push(function () {

6
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/fineui_without_jquery_polyfill.js vendored

@ -10650,14 +10650,12 @@ if (!_global.BI) {
},
freeze: function (value) {
if (Object.freeze) {
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
if (Object.freeze && BI.isObject(value)) {
return Object.freeze(value);
} else {
if (!BI.isObject(value)) {
throw new TypeError('Object.freeze can only be called on Objects.');
}
return value;
}
},
// 数字和字符串可以作为key
@ -10856,7 +10854,7 @@ if (!_global.BI) {
var pending = false;
var timerFunc;
function nextTickHandler() {
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks = [];
@ -10889,7 +10887,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick(cb) {
return function queueNextTick (cb) {
var _resolve;
var args = [].slice.call(arguments, 1);
callbacks.push(function () {

12
dist/utils.js vendored

@ -11429,14 +11429,12 @@ if (!_global.BI) {
},
freeze: function (value) {
if (Object.freeze) {
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
if (Object.freeze && BI.isObject(value)) {
return Object.freeze(value);
} else {
if (!BI.isObject(value)) {
throw new TypeError('Object.freeze can only be called on Objects.');
}
return value;
}
},
// 数字和字符串可以作为key
@ -11635,7 +11633,7 @@ if (!_global.BI) {
var pending = false;
var timerFunc;
function nextTickHandler() {
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks = [];
@ -11668,7 +11666,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick(cb) {
return function queueNextTick (cb) {
var _resolve;
var args = [].slice.call(arguments, 1);
callbacks.push(function () {

10
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

12
src/core/base.js

@ -471,14 +471,12 @@ if (!_global.BI) {
},
freeze: function (value) {
if (Object.freeze) {
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
if (Object.freeze && BI.isObject(value)) {
return Object.freeze(value);
} else {
if (!BI.isObject(value)) {
throw new TypeError('Object.freeze can only be called on Objects.');
}
return value;
}
},
// 数字和字符串可以作为key
@ -677,7 +675,7 @@ if (!_global.BI) {
var pending = false;
var timerFunc;
function nextTickHandler() {
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks = [];
@ -710,7 +708,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick(cb) {
return function queueNextTick (cb) {
var _resolve;
var args = [].slice.call(arguments, 1);
callbacks.push(function () {

Loading…
Cancel
Save