diff --git a/backbone-couchdb.coffee b/backbone-couchdb.coffee index e9acc85..dc74ae0 100644 --- a/backbone-couchdb.coffee +++ b/backbone-couchdb.coffee @@ -120,7 +120,7 @@ class Backbone.Collection extends Backbone.Collection # Manually start listening to real time updates listen_to_changes : -> # don't enable changes feed a second time - unless @_db_changes_enabled + unless @_db_changes_enabled @_db_changes_enabled = true @_db_inst = con.helpers.make_db() unless @_db_inst @_db_inst.info @@ -151,7 +151,7 @@ class Backbone.Collection extends Backbone.Collection if obj? # remove from collection if doc has been deleted on the server if _doc.deleted - @remove obj + @remove obj else # set new values if _revs are not the same obj.set _doc.doc unless obj.get("_rev") == _doc.doc._rev diff --git a/chat_example/_attachments/index.html b/chat_example/_attachments/index.html index 21d4e7a..4364942 100644 --- a/chat_example/_attachments/index.html +++ b/chat_example/_attachments/index.html @@ -24,7 +24,7 @@