examples/unidirectional/backbone/observ-backbone.js
function listenCollection(collection, listener) {
    collection.forEach(function listenModel(model) {
        listen(model, listener);
    });

    collection.on('add', function onAdd(model) {
        listen(model, listener);
        listener();
    });
}
function listenCollection(collection, listener) {
    collection.forEach(function listenModel(model) {
        listen(model, listener);
    });

    collection.on('add', function onAdd(model) {
        listen(model, listener);
        listener();
    });
}
function listenCollection ( collection , listener ) { collection . forEach ( function listenModel ( model ) { listen ( model , listener ) ; } ) ; collection . on ( 'add' , function onAdd ( model ) { listen ( model , listener ) ; listener ( ) ; } ) ; }
listen to a Backbone collection
listen to a Backbone collection