Merge pull request #334 from Guuz/master

Optional options
This commit is contained in:
Diullei Gomes
2013-02-25 05:00:10 -08:00
+7 -7
View File
@@ -11,14 +11,14 @@ declare module Backbone {
export interface AddOptions extends Silenceable {
at: number;
}
export interface CreateOptions extends Silenceable {
wait: bool;
}
export interface HistoryOptions extends Silenceable {
pushState: bool;
root: string;
pushState?: bool;
root?: string;
}
export interface NavigateOptions {
@@ -30,7 +30,7 @@ declare module Backbone {
}
export interface Silenceable {
silent: bool;
silent?: bool;
}
interface on { (eventName: string, callback: (...args: any[]) => void, context?: any): any; }
@@ -68,8 +68,8 @@ declare module Backbone {
constructor (attributes?: any, options?: any);
initialize(attributes?: any);
get(attributeName: string): any;
set(attributeName: string, value: any, options?: Silenceable);
get(attributeName: string): any;
set(attributeName: string, value: any, options?: Silenceable);
set(obj: any, options?: Silenceable);
change();