webpack/webpack — pull request #513 by nickdima (2014-10-07 16:25:12+00:00)
Title: Replace window.onmessage with window.addEventListener

When having multiple bundles that use hot module replacement loaded in the page, `window.onmessage` got overwritten by the last loaded bundle, making it the only one receiving the message. Changed it with `window.addEventListener` so it gets handled by all the bundles. See discussion here: https://github.com/webpack/extract-text-webpack-plugin/issues/30