Collection.remove: Argument type is missing.

It is different arguments in the add function and remove function.
(add - Backbone.Collection.add, remove - Backbone.Collection.remove)

Those that can be used in argument, a Model instance, id string or a JS object

http://backbonejs.org/#Collection-remove
This commit is contained in:
MizunagiKB
2016-02-20 14:11:16 +09:00
parent 95b7178e0e
commit 74a8ca9e7e
+2 -2
View File
@@ -206,8 +206,8 @@ declare module Backbone {
pluck(attribute: string): any[];
push(model: TModel, options?: AddOptions): TModel;
pop(options?: Silenceable): TModel;
remove(model: TModel, options?: Silenceable): TModel;
remove(models: TModel[], options?: Silenceable): TModel[];
remove(model: {}|TModel, options?: Silenceable): TModel;
remove(models: ({}|TModel)[], options?: Silenceable): TModel[];
reset(models?: TModel[], options?: Silenceable): TModel[];
set(models?: TModel[], options?: Silenceable): TModel[];
shift(options?: Silenceable): TModel;