Merge pull request #4907 from Softpagehomeware/bugfix/marionette/generics_for_collections

fixed the Collection- / Composite child view issue.
This commit is contained in:
Masahiro Wakame committed 2015-08-21 22:34:32 +09:00
commit ecbdfe2832
3 files changed
+47 -46

No files matched your search

+2 -1
View File
@@ -309,7 +309,8 @@ declare module Backbone {
interface ViewOptions<TModel extends Model> {
model?: TModel;
collection?: Backbone.Collection<TModel>;
// TODO: quickfix, this can't be fixed easy. The collection does not need to have the same model as the parent view.
collection?: Backbone.Collection<any>;
el?: any;
id?: string;
className?: string;