mwUI.Backbone.Collection = Backbone.Collection.extend({
  selectable: true,
  filterable: true,
  hostName: function(){
    return mwUI.Backbone.hostName;
  },
  basePath: function(){
    return mwUI.Backbone.basePath;
  },
  endpoint: null,
  selectableOptions: mwUI.Backbone.SelectableCollection.prototype.selectableOptions,
  filterableOptions: mwUI.Backbone.FilterableCollection.prototype.filterableOptions,
  model: mwUI.Backbone.Model,
  url: function () {
    return window.mwUI.Backbone.Utils.getUrl(this);
  },
  getEndpoint: function () {
    return this.url();
  },
  setEndpoint: function (endpoint) {
    this.endpoint = endpoint;
  },
  replace: function (models) {
    this.reset(models);
    this.trigger('replace', this);
  },
  constructor: function () {
    var superConstructor = Backbone.Collection.prototype.constructor.apply(this, arguments);
    mwUI.Backbone.SelectableCollection.prototype.selectableCollectionConstructor.apply(this, arguments);
    mwUI.Backbone.FilterableCollection.prototype.filterableCollectionConstructor.apply(this, arguments);
    return superConstructor;
  },
  fetch: function () {
    return mwUI.Backbone.FilterableCollection.prototype.fetch.apply(this, arguments);
  },
  request: function (url, method, options) {
    return window.mwUI.Backbone.Utils.request(url, method, options, this);
  }
});
@@ -101,34 +101,36 @@
 stName: function
+ 
 ()
+ 
 %7B%0A    return mwU
@@ -175,18 +175,20 @@
 function
+ 
 ()
+ 
 %7B%0A    re
@@ -409,16 +409,16 @@
 ptions,%0A
-
   model:
@@ -439,16 +439,483 @@
 .Model,%0A
+  secureEach: function (callback, ctx) %7B%0A    // This method can be used when items are removed from the collection during the each loop%0A    // When doing this in the normal each method you will get referencing issues%E2%80%94in java terms you%0A    // would get a ConcurrentModificationException%0A    _.pluck(this.models, 'cid').forEach(function (cid, index) %7B%0A      var model = this.get(cid, index);%0A      callback.call(ctx, model, index, this.models);%0A    %7D.bind(this));%0A  %7D,%0A
   url: f

Add method secureEach to iterate over collection safely