Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Execute callbacks once but don't remove them #17

Merged
merged 1 commit into from
Feb 19, 2017

Conversation

plemarquand
Copy link
Contributor

Some webpack plugins (at least webpack-dev-middleware) rely
on the plugin callback array not being modified.

Instead of unhooking the listener when the browser has been opened,
simply perform a no-op after the first function call. This avoids
having to mutate the callback array while still maintaining the old
behaviour.

Fixes #9
Fixes #11

Some webpack plugins (at least webpack-dev-middleware) rely
on the plugin callback array not being modified.

Instead of unhooking the listener when the browser has been opened,
simply perform a no-op after the first function call. This avoids
having to mutate the callback array while still maintaining the old
behaviour.

Fixes baldore#9
Fixes baldore#11
@baldore baldore merged commit cd24a4c into baldore:master Feb 19, 2017
@plemarquand plemarquand deleted the topic/callbackfix branch March 7, 2017 16:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants