diff --git a/backgrid/backgrid-tests.ts b/backgrid/backgrid-tests.ts index a29a4ae7e..f2a41a558 100644 --- a/backgrid/backgrid-tests.ts +++ b/backgrid/backgrid-tests.ts @@ -26,8 +26,8 @@ class TestModel extends Backbone.Model { class TestCollection extends Backbone.Collection { constructor(models?: any, options?: any) { - this.model = TestModel; super(models, options); + this.model = TestModel; } initialize() { @@ -46,6 +46,7 @@ class TestView extends Backbone.View { testCollection: TestCollection; constructor(viewOptions?: Backbone.ViewOptions) { + super(viewOptions); this.testCollection = new TestCollection(); this.gridView = new Backgrid.Grid({ columns: [new Backgrid.Column({name: "FirstName", cell: "string", label: "First Name"}), @@ -54,7 +55,6 @@ class TestView extends Backbone.View { collection:this.testCollection, }); - super(viewOptions); }