From cfba99c704e99f408198d66dfec01092d3bf0147 Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Tue, 27 Dec 2016 02:17:13 +0300 Subject: [PATCH] KJS: remove unused polyfill String.prototype.contains --- js/js.libraries/src/js/polyfills.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/js.libraries/src/js/polyfills.js b/js/js.libraries/src/js/polyfills.js index dd7ace6057b..0779e4f5840 100644 --- a/js/js.libraries/src/js/polyfills.js +++ b/js/js.libraries/src/js/polyfills.js @@ -31,7 +31,3 @@ if (typeof String.prototype.endsWith === "undefined") { return lastIndex !== -1 && lastIndex === position; }; } - -String.prototype.contains = function (s) { - return this.indexOf(s) !== -1; -};