Skip to content

Commit

Permalink
getting back in the habit of bindTo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarrod Overson committed Aug 25, 2012
1 parent 1ae2706 commit e051bdc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -6,7 +6,7 @@ define(['marionette'], function (Marionette) {
return Marionette.View.extend({
tagName : 'span',
initialize : function() {
this.collection.on('all',this.render,this);
this.bindTo(this.collection, 'all', this.render, this);
},
render : function() {
this.$el.html(this.collection.getActive().length);
Expand Down

0 comments on commit e051bdc

Please sign in to comment.