backbone-formview.js
function (obj) {
            var model = (obj instanceof Model) ? obj : null;
            var view = (!model && obj instanceof Backbone.View) ? obj : null;
            var arr = (!model && !view && isArray(obj)) ? obj : null;

            if (arr) {
                each(arr, this.deleteRow, this);
                return this;
            }

            if (!view) {
                view = this.subs.get(model);
            } else if (!model) {
                model = view.model;
            }

            this.subs.remove(view);
            this.collection.remove(model);
            return this;
        }
function (obj) {
            var model = (obj instanceof Model) ? obj : null;
            var view = (!model && obj instanceof Backbone.View) ? obj : null;
            var arr = (!model && !view && isArray(obj)) ? obj : null;

            if (arr) {
                each(arr, this.deleteRow, this);
                return this;
            }

            if (!view) {
                view = this.subs.get(model);
            } else if (!model) {
                model = view.model;
            }

            this.subs.remove(view);
            this.collection.remove(model);
            return this;
        }
function ( obj ) { var model = ( obj instanceof Model ) ? obj : null ; var view = ( ! model && obj instanceof Backbone . View ) ? obj : null ; var arr = ( ! model && ! view && isArray ( obj ) ) ? obj : null ; if ( arr ) { each ( arr , this . deleteRow , this ) ; return this ; } if ( ! view ) { view = this . subs . get ( model ) ; } else if ( ! model ) { model = view . model ; } this . subs . remove ( view ) ; this . collection . remove ( model ) ; return this ; }
Removes a row or rows from the CollectionFormView and
corresponding collection.
@memberOf Backbone.CollectionFormView#
@param  {Backbone.Model|Backbone.View|Backbone.View[]|Backbone.Model[]} obj
Used to find models in the collection and views in the subViewManager
and remove them.
@return {Backbone.CollectionFormView}
Removes a row or rows from the CollectionFormView and corresponding collection .