Merge pull request #3963 from spalger/fix/3928

[visualize/editor] pull listeners over when copying state out of the url
This commit is contained in:
Lukas Olson 2015-05-26 16:42:27 -07:00
commit 949f67d8fb

View file

@ -170,6 +170,8 @@ define(function (require) {
}
if (_.contains(keys, 'vis')) {
$state.vis.listeners = _.defaults($state.vis.listeners || {}, vis.listeners);
// only update when we need to, otherwise colors change and we
// risk loosing an in-progress result
vis.setState($state.vis);