Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix demo jerkiness

  • Loading branch information...
commit 3ea8dd22db0056e32c488ccf829e8ad9b7105095 1 parent 2c08622
Jonas Huckestein authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/
5 test/
@@ -28,8 +28,9 @@ sync = ObjectSync.listen server,
update: (obj, sid, callback) ->
if objects[]
same = true
- same = same and (objects[][prop] is val) for prop, val of obj
- objects[] = obj
+ for prop, val of obj when objects[][prop] isnt val
+ same = false
+ objects[][prop] = val
callback null, obj, not same
else callback
code: 'invalid_id'
Please sign in to comment.
Something went wrong with that request. Please try again.