in app/scripts/controllers/grid/grid.js [74:91]
toolbarButtonClicked : function(action) {
var selectedRows = this.get('rows').filter(function(row) {
return row.isSelected;
});
var controller = this;
this.get('toolbar').buttons.forEach(function(button,index) {
if(button.action === action) {
button.handler(selectedRows, controller);
return false;
}
});
},