From d4fabd4878050fdfea4e88dfe54eb90b4e35690f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 20 Feb 2013 17:05:30 +0100 Subject: tooltips and other improvements on webui --- module/web/static/js/views/fileView.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'module/web/static/js/views/fileView.js') diff --git a/module/web/static/js/views/fileView.js b/module/web/static/js/views/fileView.js index 86f7b33d2..c7b87e871 100644 --- a/module/web/static/js/views/fileView.js +++ b/module/web/static/js/views/fileView.js @@ -13,13 +13,11 @@ define(['jquery', 'backbone', 'underscore', 'app', 'views/abstract/itemView'], }, initialize: function() { - this.model.on('change', this.render, this); - this.model.on('remove', this.destroy, this); + this.listenTo(this.model, 'change', this.render); + this.listenTo(this.model, 'remove', this.destroy); }, onDestroy: function() { - this.model.off('change', this.render); - this.model.off('remove', this.destroy); }, render: function() { -- cgit v1.2.3