Add Backbone.Collection.clone()

http://backbonejs.org/#Collection-clone
This commit is contained in:
Ian Phillips
2017-06-20 09:58:18 -07:00
parent f061992636
commit ed76f54ebd

View File

@@ -229,6 +229,7 @@ declare namespace Backbone {
**/
get(id: number|string|Model): TModel;
has(key: number|string|Model): boolean;
clone(): Collection<TModel>;
create(attributes: any, options?: ModelSaveOptions): TModel;
pluck(attribute: string): any[];
push(model: TModel, options?: AddOptions): TModel;