hummingbird-me/hummingbird

View on GitHub
frontend/app/controllers/edits.js

Summary

Maintainability
A
0 mins
Test Coverage
import Ember from 'ember';

export default Ember.ArrayController.extend({
  removeReviewed: function() {
    this.get('content').filterBy('isDeleted').forEach(function(item) {
      this.removeAt(this.indexOf(item));
    }.bind(this));
  }.observes('@each.isDeleted')
});