Merge pull request #4423 from Softpagehomeware/bugfix/backbone_collection_model_type

fixed the collection TModel workaround.
This commit is contained in:
Masahiro Wakame
2015-05-25 01:36:17 +09:00
+1 -3
View File
@@ -169,9 +169,7 @@ declare module Backbone {
**/
private static extend(properties: any, classProperties?: any): any;
// TODO: this really has to be typeof TModel
//model: typeof TModel;
model: { new(): TModel; }; // workaround
model: new (...args:any[]) => TModel;
models: TModel[];
length: number;