Merge pull request #3432 from alphaleonis/fix-viewoptions-attributes

Backbone: Fixed incorrect definition of attributes property in ViewOptions.
This commit is contained in:
Masahiro Wakame
2015-01-11 12:07:12 +09:00
+8 -8
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 {