Skip to content

Move addEventListener, removeEventListener, setAttribute into shared#227

Merged
Rich-Harris merged 1 commit intosveltejs:masterfrom
Conduitry:share-more
Jan 3, 2017
Merged

Move addEventListener, removeEventListener, setAttribute into shared#227
Rich-Harris merged 1 commit intosveltejs:masterfrom
Conduitry:share-more

Conversation

@Conduitry
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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