Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

getting back in the habit of bindTo

  • Loading branch information...
commit e051bdcb70ed22fb60fa8fbcab031f22ce395a7f 1 parent 1ae2706
@jsoverson jsoverson authored
View
2  labs/dependency-examples/backbone_marionette_require/js/views/ActiveCount.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.