Closed qfox closed 7 years ago
how about polyfill?
@zxqfox why bem-xjst
should have this ternary inspection?
If you can use Object.assign
in templates it’s good. But why we need a polyfill in this.extend
?
You suggest to drop this.extend?
Yep. Someday.
@zxqfox I can close issue in the hope that someday we will declare this.extend
deprecated?
Ох... Вот это будет больно.
@miripiruni I don't see why we can't improve this.extend
for now. Regardless of the deprecation. ;-)
@zxqfox what benefits?
Expectations: https://lodash.com/docs#assignIn http://api.jquery.com/jQuery.extend/ Reality: Well, you know.
So can I close?
:+1: for deprecation of this.extend()
.
Expectations: https://lodash.com/docs#assignIn http://api.jquery.com/jQuery.extend/
Object.assign()
and $.extend()
work different (at least for keys \w undefined
values), so the point about expectations is quite doubtful, IMHO.
@narqo Yes, but the current behaviour is quitely different from both of them. It's even worse.
this.extend
as deprecated.Object.assign
today.
It's a breaking thing, but annoying.