Skip to content

Conversation

@darkwing
Copy link
Contributor

Another small nit to knock down code.

forEach.call(stateMixinsEls, function (el) { stateMixinIds.push(el.id); });
stateMixinIds.forEach(self.unregisterMixin.bind(self));
// State mixins
var stateMixinsEls = Array.from(document.querySelectorAll('[id^=' + mixinId + '-]'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the support of Array.from is more limited than the previous form.

@darkwing
Copy link
Contributor Author

darkwing commented Aug 2, 2016

If we want to support old browsers without Array.from, we should back this out (#1642) and use Array.prototype.slice (https://davidwalsh.name/nodelist-array).

@dmarcos
Copy link
Member

dmarcos commented Aug 2, 2016

Yes. I think we should get rid of Array.from. We can open a different PR to remove the one introduced by #1642

@darkwing darkwing force-pushed the updateStateMixins branch from 1ce1e5f to a411df7 Compare August 2, 2016 18:24
@darkwing darkwing force-pushed the updateStateMixins branch from a411df7 to b485ea5 Compare August 2, 2016 19:07
@darkwing
Copy link
Contributor Author

darkwing commented Aug 2, 2016

Updated. Feel free to just close if you don't want it

@darkwing
Copy link
Contributor Author

darkwing commented Aug 9, 2016

Closing in favor of another.

@darkwing darkwing closed this Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment