         @_check()
         return @_doc.get_read_only()
 
-    _on_change: () =>
+    _on_change: =>
         if not @_doc?
             # This **can** happen because @_on_change is actually throttled, so
             # definitely will sometimes get called one more time,

            if not before.equals(record)
                # there was an actual change, so update; doesn't change anything involving indexes.
                changes = changes.add(@_primary_key_cols(record))
                return new DBDoc(@_primary_keys, @_string_cols, @_records.set(n, record), @_everything, @_indexes, changes)
            else
                return @
        else

                    else
                        matches = immutable.Set([n])
                    indexes = indexes.set(field, index.set(k, matches))
            return new DBDoc(@_primary_keys, @_string_cols, records, everything, indexes, {changes:changes, from_db:@_changes.from_db})

    delete: (where) =>
        if misc.is_array(where)
