Skip to content Skip to sidebar Skip to footer

Stoplistening() Race Condition?

var PlaylistView = Backbone.View.extend({ el: '#expanded-container', initialize: function() { var playlistModel = this.model; this.stopListening(playlistModel.get('son

Solution 1:

That may happen if playlistModel.get('songs') are not returning the same objects, try to remove only the event whatever the objects are, like this:

this.stopListening(null, 'add');

Post a Comment for "Stoplistening() Race Condition?"