Commit 76fe1f07 authored by Nick Stenning's avatar Nick Stenning

Simplify applyUpdates

parent 14fe54ff
......@@ -19,11 +19,8 @@ class AppController
applyUpdates = (action, data) ->
# Update the application with new data from the websocket.
return unless data?.length
if action == 'past'
action = 'create'
switch action
when 'create', 'update'
when 'create', 'update', 'past'
plugins.Store?._onLoadAnnotations data
when 'delete'
for annotation in data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment