FIX: simpler w function check (#7496)
This commit is contained in:
parent
0a66065774
commit
2570311718
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue