mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
fix overriding comparator for Backbone
having the "sort" version of the comparator return a number, while technically correct according to the Backbone documentation, does not actually work when the "sortBy" version of the comparator is used.
This commit is contained in:
Vendored
+1
-1
@@ -152,7 +152,7 @@ declare module Backbone {
|
||||
fetch(options?: CollectionFetchOptions): JQueryXHR;
|
||||
|
||||
comparator(element: Model): any;
|
||||
comparator(compare: Model, to?: Model): number;
|
||||
comparator(compare: Model, to?: Model): any;
|
||||
|
||||
add(model: Model, options?: AddOptions);
|
||||
add(models: Model[], options?: AddOptions);
|
||||
|
||||
Reference in New Issue
Block a user