Merge pull request #1153 from pygy/rewrite

Event handlers redraw all mount points. Fix #1146
This commit is contained in:
Leo Horie 2016-07-15 09:56:45 -04:00 committed by GitHub
commit 26137158d2

View file

@ -6,7 +6,7 @@ module.exports = function(root, renderer, pubsub, callback) {
var run = throttle(callback)
if (renderer != null) {
renderer.setEventCallback(function(e) {
if (e.redraw !== false) run()
if (e.redraw !== false) pubsub.publish()
})
}