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

This reverts commit 2570311718.
This commit is contained in:
Joffrey JAFFEUX 2019-05-08 07:19:23 +02:00
parent 22d6203eb7
commit 0c0d05e8f2

View File

@ -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);
};