Explorar o código

Fix event handlers in BookmarksView

JC Brand %!s(int64=4) %!d(string=hai) anos
pai
achega
b31f334109
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/plugins/bookmark-views/bookmarks-list.js

+ 1 - 1
src/plugins/bookmark-views/bookmarks-list.js

@@ -21,7 +21,7 @@ export default class BookmarksView extends ElementView {
         const id = `converse.room-bookmarks${_converse.bare_jid}-list-model`;
         this.list_model = new _converse.BookmarksList({ id });
         this.list_model.browserStorage = _converse.createStore(id);
-        this.list_model.fetch({ 'success': this.render, 'error': this.render });
+        this.list_model.fetch({ 'success': () => this.render(), 'error': () => this.render() });
     }
 
     render () {