Changeset - 73762e14ee98
[Not reviewed]
default
0 1 0
Drew Perttula - 9 years ago 2016-06-09 05:15:16
drewp@bigasterisk.com
typecheck on applyPatch
Ignore-this: 74f1fbbbc338b377b466aac6e477f27b
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/web/graph.coffee
Show inline comments
 
@@ -162,6 +162,8 @@ class window.SyncedGraph
 
    [q.subject, q.predicate, q.object, q.graph] for q in @graph.find()
 

	
 
  applyAndSendPatch: (patch) ->
 
    if !Array.isArray(patch.addQuads) || !Array.isArray(patch.delQuads)
 
      throw new Error("corrupt patch: #{patch}")
 
    @_applyPatch(patch)
 
    @_client.sendPatch(patch) if @_client
 

	
0 comments (0 inline, 0 general)