Skip to content

Commit

Permalink
Handle patch events on source changes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 2, 2019
1 parent f8033a2 commit f9d4345
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions holoviews/plotting/bokeh/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def set_customjs_callback(self, js_callback, handle):
if self.on_events:
for event in self.on_events:
handle.js_on_event(event, js_callback)
elif self.on_changes:
if self.on_changes:
for change in self.on_changes:
handle.js_on_change(change, js_callback)
elif hasattr(handle, 'callback'):
Expand Down Expand Up @@ -389,7 +389,7 @@ def set_server_callback(self, handle):
if self.on_events:
for event in self.on_events:
handle.on_event(event, self.on_event)
elif self.on_changes:
if self.on_changes:
for change in self.on_changes:
handle.on_change(change, self.on_change)

Expand Down Expand Up @@ -912,7 +912,7 @@ class CDSCallback(Callback):

attributes = {'data': 'source.data'}
models = ['source']
on_changes = ['data']
on_changes = ['data', 'patching']

def initialize(self, plot_id=None):
super(CDSCallback, self).initialize(plot_id)
Expand Down

0 comments on commit f9d4345

Please sign in to comment.