Fixed incorrect definition of attributes property in ViewOptions.

This commit is contained in:
alphaleonis
2015-01-08 19:33:21 +01:00
parent 4abbdff87f
commit 025c836d3d

View File

@@ -311,14 +311,14 @@ declare module Backbone {
private _updateHash(location: Location, fragment: string, replace: boolean): void;
}
interface ViewOptions<TModel extends Model> {
model?: TModel;
collection?: Backbone.Collection<TModel>;
el?: any;
id?: string;
className?: string;
tagName?: string;
attributes?: any[];
interface ViewOptions<TModel extends Model> {
model?: TModel;
collection?: Backbone.Collection<TModel>;
el?: any;
id?: string;
className?: string;
tagName?: string;
attributes?: {[id: string]: any};
}
class View<TModel extends Model> extends Events {