Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move addEventListener, removeEventListener, setAttribute into shared #227

Merged
merged 1 commit into from
Jan 3, 2017
Merged

Move addEventListener, removeEventListener, setAttribute into shared #227

merged 1 commit into from
Jan 3, 2017

Conversation

Conduitry
Copy link
Member

It seems like there are a few more things that can be split off into shared functions to reduce code duplication. In this PR, I'm moving the .addEventListener, .removeEventListener, and .setAttribute calls into shared functions. This further decreases the (minified, ungzipped) code size.

@PaulBGD
Copy link
Member

PaulBGD commented Dec 30, 2016

+1 for setAttribute, if you put an SVG into svelte form there's literally hundreds of these.

@Rich-Harris Rich-Harris merged commit f87191c into sveltejs:master Jan 3, 2017
@Rich-Harris
Copy link
Member

nice, thanks 👍

@Conduitry Conduitry deleted the share-more branch January 3, 2017 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants