3 ms·
Agreed, thanks for the feedback, and, after having worked with end-dash I've come to a lot of the same conclusions you just made. The dashes were initially jus
by devhinton 13y ago
Agreed, thanks for the feedback, and, after having worked with end-dash I've come to a lot of the same conclusions you just made.
The dashes were initially just to shorten the common:
<div class="thing" data-text="thing"></div>
to
<div class="thing-"></div>
Using dashes for polymorphic attributes was a bad idea, and is being removed, the data-each was recently added to replace a dashed syntax for collections. We're adding interpolated variables, so that the dash syntax will only be used for scoping.
> Not only that, but check out something like ianstormtaylor/get[2] to see how easy it could be to add support for backbone-like models alongside regular properties and terser, single-method models.
https://github.com/Amicus/end-dash/blob/master/lib/util.js#L67 https://github.com/Amicus/end-dash/blob/master/lib/util.js#L...
This does exactly that.
Thanks, from Amicus