From c4cdf62b6da6f8569383dea62d3373a1e253ef22 Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 1 Sep 2018 19:46:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/bundle.js | 8 +++++++- dist/core.js | 8 +++++++- dist/fineui.js | 8 +++++++- dist/fineui_without_jquery_polyfill.js | 8 +++++++- dist/utils.js | 8 +++++++- src/core/func/date.js | 6 ++++++ src/core/func/function.js | 2 +- 7 files changed, 42 insertions(+), 6 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index 7b7f085ac..66d463dda 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -17925,6 +17925,12 @@ _.extend(BI, { s["%Q"] = qr; var re = /%./g; + BI.isKhtml = BI.isKhtml || function () { + if(!_global.navigator) { + return false; + } + return /Konqueror|Safari|KHTML/i.test(navigator.userAgent); + }; if (!BI.isKhtml()) { return str.replace(re, function (par) { return s[par] || par; @@ -17948,7 +17954,7 @@ _.extend(BI, { * Created by GUY on 2015/6/24. */ BI.Func = {}; -BI.extend(BI.Func, { +_.extend(BI.Func, { /** * 创建唯一的名字 * @param array diff --git a/dist/core.js b/dist/core.js index 5460b8e12..bd489ba56 100644 --- a/dist/core.js +++ b/dist/core.js @@ -17925,6 +17925,12 @@ _.extend(BI, { s["%Q"] = qr; var re = /%./g; + BI.isKhtml = BI.isKhtml || function () { + if(!_global.navigator) { + return false; + } + return /Konqueror|Safari|KHTML/i.test(navigator.userAgent); + }; if (!BI.isKhtml()) { return str.replace(re, function (par) { return s[par] || par; @@ -17948,7 +17954,7 @@ _.extend(BI, { * Created by GUY on 2015/6/24. */ BI.Func = {}; -BI.extend(BI.Func, { +_.extend(BI.Func, { /** * 创建唯一的名字 * @param array diff --git a/dist/fineui.js b/dist/fineui.js index 34b8c7184..49c6aec48 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -18167,6 +18167,12 @@ _.extend(BI, { s["%Q"] = qr; var re = /%./g; + BI.isKhtml = BI.isKhtml || function () { + if(!_global.navigator) { + return false; + } + return /Konqueror|Safari|KHTML/i.test(navigator.userAgent); + }; if (!BI.isKhtml()) { return str.replace(re, function (par) { return s[par] || par; @@ -18190,7 +18196,7 @@ _.extend(BI, { * Created by GUY on 2015/6/24. */ BI.Func = {}; -BI.extend(BI.Func, { +_.extend(BI.Func, { /** * 创建唯一的名字 * @param array diff --git a/dist/fineui_without_jquery_polyfill.js b/dist/fineui_without_jquery_polyfill.js index c0ccae681..e26965d90 100644 --- a/dist/fineui_without_jquery_polyfill.js +++ b/dist/fineui_without_jquery_polyfill.js @@ -17671,6 +17671,12 @@ _.extend(BI, { s["%Q"] = qr; var re = /%./g; + BI.isKhtml = BI.isKhtml || function () { + if(!_global.navigator) { + return false; + } + return /Konqueror|Safari|KHTML/i.test(navigator.userAgent); + }; if (!BI.isKhtml()) { return str.replace(re, function (par) { return s[par] || par; @@ -17694,7 +17700,7 @@ _.extend(BI, { * Created by GUY on 2015/6/24. */ BI.Func = {}; -BI.extend(BI.Func, { +_.extend(BI.Func, { /** * 创建唯一的名字 * @param array diff --git a/dist/utils.js b/dist/utils.js index e34322acd..85db25031 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -10744,6 +10744,12 @@ _.extend(BI, { s["%Q"] = qr; var re = /%./g; + BI.isKhtml = BI.isKhtml || function () { + if(!_global.navigator) { + return false; + } + return /Konqueror|Safari|KHTML/i.test(navigator.userAgent); + }; if (!BI.isKhtml()) { return str.replace(re, function (par) { return s[par] || par; @@ -10767,7 +10773,7 @@ _.extend(BI, { * Created by GUY on 2015/6/24. */ BI.Func = {}; -BI.extend(BI.Func, { +_.extend(BI.Func, { /** * 创建唯一的名字 * @param array diff --git a/src/core/func/date.js b/src/core/func/date.js index 51ff8979d..fa27de101 100644 --- a/src/core/func/date.js +++ b/src/core/func/date.js @@ -198,6 +198,12 @@ _.extend(BI, { s["%Q"] = qr; var re = /%./g; + BI.isKhtml = BI.isKhtml || function () { + if(!_global.navigator) { + return false; + } + return /Konqueror|Safari|KHTML/i.test(navigator.userAgent); + }; if (!BI.isKhtml()) { return str.replace(re, function (par) { return s[par] || par; diff --git a/src/core/func/function.js b/src/core/func/function.js index 699d6f0ab..3bd7744c0 100644 --- a/src/core/func/function.js +++ b/src/core/func/function.js @@ -3,7 +3,7 @@ * Created by GUY on 2015/6/24. */ BI.Func = {}; -BI.extend(BI.Func, { +_.extend(BI.Func, { /** * 创建唯一的名字 * @param array