Revert "FIX: simpler w function check (#7496)"

Revert “FIX: simpler w function check (#7496)”

This reverts commit 25703117188747e4576350961b83247d1a04c1ef.

diff --git a/vendor/assets/javascripts/i18n-patches.js b/vendor/assets/javascripts/i18n-patches.js
index 90d8496..61c0a52 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 ("w" in String.prototype) {
+    if (Ember.typeOf(String.prototype.w) === "function") {
       String.prototype.i18n = function(options) {
         return I18n.t(String(this), options);
       };

GitHub sha: 0c0d05e8

Revert "Revert "FIX: simpler w function check (#7496)""