コレクションの配列 (coll_array) があります。すべてのコレクションは、すべてのイベントで同じ関数 (process_coll) にバインドされます。つまり、配列内のコレクションのいずれかを変更すると、同じ関数が実行されます。私の問題は、イベントが発生したコレクションをどのように特定するかです。ターゲット関数に引数を渡すことができれば、コレクションの ID を渡すことができますが、私が知る限り、バックボーン イベントでそれを行う方法はありません。
initialize: function(){
_(this).bindAll('process_coll');
coll_array ; //array of collections
for(var i=0;i<coll_array.length;i++)
coll_array[i].bind('all', this.process_coll);
coll_array[i].fetch();
}
process_coll: function(){
//some code here
//how do I get the specific collection which resulted in execution of this function?
}