Skip to content

Instantly share code, notes, and snippets.

@a-ignatov-parc
Created July 12, 2013 11:50
Show Gist options
  • Save a-ignatov-parc/5983888 to your computer and use it in GitHub Desktop.
Save a-ignatov-parc/5983888 to your computer and use it in GitHub Desktop.
initialize: function() {
_.bindAll(this, 'subscribe', 'onAuth'); // Не правильно!
this.on('change:messenger', this.subscribe);
},
initialize: function() {
this.on('change:messenger', this.subscribe, this); // Правильно
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment