Event handlers redraw all mount points. Fix #1146

This commit is contained in:
Pierre-Yves Gerardy 2016-07-15 12:42:18 +02:00
parent 7a5978df59
commit e0a0e97ada

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()
})
}