From f5d89699157a9c795655b81067955f60880fba26 Mon Sep 17 00:00:00 2001 From: Marcel Binot Date: Thu, 15 Nov 2012 08:58:20 +0100 Subject: [PATCH] Backbone: url and rootUrl changed to url() and rootUrl(), groupBy() removed --- Definitions/backbone-0.9.d.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Definitions/backbone-0.9.d.ts b/Definitions/backbone-0.9.d.ts index 225b196fda..b8f9d22097 100644 --- a/Definitions/backbone-0.9.d.ts +++ b/Definitions/backbone-0.9.d.ts @@ -49,7 +49,7 @@ declare module Backbone { export class ModelBase extends Events { fetch(options?: JQueryAjaxSettings); - url: string; // or url(): string; + url(): string; parse(response); toJSON(): any; } @@ -63,7 +63,7 @@ declare module Backbone { cid: string; id: any; idAttribute: string; - urlRoot: string; // or urlRoot() + urlRoot() : string; constructor (attributes?: any, options?: any); initialize(attributes?: any); @@ -142,8 +142,6 @@ declare module Backbone { flatten(shallow?: bool): Model[]; foldl(iterator: (memo: any, element: Model, index: number) => any, initialMemo: any, context?: any): any; forEach(iterator: (element: Model, index: number, list?: any) => void, context?: any); - groupBy(iterator: (element: Model, index: number) => any): any[]; - groupBy(attribute: string): any[]; include(value: any): bool; indexOf(element: Model, isSorted?: bool): number; initial(): Model;