this.edit.apply(); var s = this.selection.getSelected(); if(s.length){ this.model.remove(s); this.selection.clear(); }