Merge pull request #2026 from ttrevorr/update-backbone.d.ts

Update backbone.d.ts
This commit is contained in:
Masahiro Wakame
2014-04-13 16:56:35 +09:00
+6 -3
View File
@@ -171,7 +171,8 @@ declare module Backbone {
remove(models: Model[], options?: Silenceable): Model[];
reset(models?: Model[], options?: Silenceable): Model[];
reset(models?: any[], options?: Silenceable): Model[];
shift(options?: Silenceable): Model;
set(models?: any[], options?: Silenceable): Model[];
shift(options?: Silenceable): Model;
sort(options?: Silenceable): Collection;
unshift(model: Model, options?: AddOptions): Model;
where(properies: any): Model[];
@@ -278,7 +279,8 @@ declare module Backbone {
loadUrl(fragmentOverride: string): boolean;
navigate(fragment: string, options?: any): boolean;
started: boolean;
options: any;
_updateHash(location: Location, fragment: string, replace: boolean): void;
}
@@ -330,7 +332,8 @@ declare module Backbone {
// SYNC
function sync(method: string, model: Model, options?: JQueryAjaxSettings): any;
var emulateHTTP: boolean;
function ajax(options?: JQueryAjaxSettings): JQueryXHR;
var emulateHTTP: boolean;
var emulateJSONBackbone: boolean;
// Utility