From cd9a92bed972966af36682ad215a331bbc5ab18c Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Tue, 9 Nov 2021 08:11:33 +0100 Subject: [PATCH] Removed the polyfill scripts as it is no longer needed. --- .../views/appointments/book_success.php | 1 - application/views/appointments/message.php | 1 - application/views/backend/footer.php | 1 - application/views/general/error404.php | 1 - application/views/general/installation.php | 1 - application/views/user/forgot_password.php | 1 - application/views/user/login.php | 1 - assets/js/polyfill.js | 46 ------------------- 8 files changed, 53 deletions(-) delete mode 100644 assets/js/polyfill.js diff --git a/application/views/appointments/book_success.php b/application/views/appointments/book_success.php index 7dc52a3b..1cf2508e 100755 --- a/application/views/appointments/book_success.php +++ b/application/views/appointments/book_success.php @@ -85,7 +85,6 @@ - diff --git a/application/views/appointments/message.php b/application/views/appointments/message.php index 512adaea..80e0f1eb 100644 --- a/application/views/appointments/message.php +++ b/application/views/appointments/message.php @@ -22,7 +22,6 @@ - diff --git a/application/views/backend/footer.php b/application/views/backend/footer.php index 91c5aed3..156761cf 100644 --- a/application/views/backend/footer.php +++ b/application/views/backend/footer.php @@ -45,7 +45,6 @@ - diff --git a/application/views/general/error404.php b/application/views/general/error404.php index 4adbe3e9..1cdde41f 100644 --- a/application/views/general/error404.php +++ b/application/views/general/error404.php @@ -25,7 +25,6 @@ - diff --git a/application/views/general/installation.php b/application/views/general/installation.php index e8a77d45..62f62549 100755 --- a/application/views/general/installation.php +++ b/application/views/general/installation.php @@ -147,7 +147,6 @@ - diff --git a/application/views/user/forgot_password.php b/application/views/user/forgot_password.php index bb22473c..d28d6c68 100644 --- a/application/views/user/forgot_password.php +++ b/application/views/user/forgot_password.php @@ -69,7 +69,6 @@ - diff --git a/application/views/user/login.php b/application/views/user/login.php index 7865bd76..3dca84ec 100644 --- a/application/views/user/login.php +++ b/application/views/user/login.php @@ -84,7 +84,6 @@ - diff --git a/assets/js/polyfill.js b/assets/js/polyfill.js deleted file mode 100644 index 3a22a17e..00000000 --- a/assets/js/polyfill.js +++ /dev/null @@ -1,46 +0,0 @@ -// https://tc39.github.io/ecma262/#sec-array.prototype.find -if (!Array.prototype.find) { - Object.defineProperty(Array.prototype, 'find', { - value: function (predicate) { - // 1. Let O be ? ToObject(this value). - if (this == null) { - throw TypeError('"this" is null or not defined'); - } - - var o = Object(this); - - // 2. Let len be ? ToLength(? Get(O, "length")). - var len = o.length >>> 0; - - // 3. If IsCallable(predicate) is false, throw a TypeError exception. - if (typeof predicate !== 'function') { - throw TypeError('predicate must be a function'); - } - - // 4. If thisArg was supplied, let T be thisArg; else let T be undefined. - var thisArg = arguments[1]; - - // 5. Let k be 0. - var k = 0; - - // 6. Repeat, while k < len - while (k < len) { - // a. Let Pk be ! ToString(k). - // b. Let kValue be ? Get(O, Pk). - // c. Let testResult be ToBoolean(? Call(predicate, T, « kValue, k, O »)). - // d. If testResult is true, return kValue. - var kValue = o[k]; - if (predicate.call(thisArg, kValue, k, o)) { - return kValue; - } - // e. Increase k by 1. - k++; - } - - // 7. Return undefined. - return undefined; - }, - configurable: true, - writable: true - }); -}