From d6452963cd0dc1a84d39b390f8d16cbc9d3ccf6c Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 8 May 2019 08:14:09 +0200 Subject: [PATCH] Revert "Revert "FIX: simpler w function check (#7496)"" This reverts commit 0c0d05e8f2163336dc0306f15f5a942014a13177. --- vendor/assets/javascripts/i18n-patches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/assets/javascripts/i18n-patches.js b/vendor/assets/javascripts/i18n-patches.js index 61c0a526e9d..90d8496c37b 100644 --- a/vendor/assets/javascripts/i18n-patches.js +++ b/vendor/assets/javascripts/i18n-patches.js @@ -13,7 +13,7 @@ return oldI18ntoHumanSize.apply(this, [number, options]); }; - if (Ember.typeOf(String.prototype.w) === "function") { + if ("w" in String.prototype) { String.prototype.i18n = function(options) { return I18n.t(String(this), options); };