mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
adhoc fix backgrid/backgrid-tests.ts
This commit is contained in:
@@ -26,8 +26,8 @@ class TestModel extends Backbone.Model {
|
||||
class TestCollection extends Backbone.Collection<TestModel> {
|
||||
|
||||
constructor(models?: any, options?: any) {
|
||||
this.model = TestModel;
|
||||
super(models, options);
|
||||
this.model = TestModel;
|
||||
}
|
||||
|
||||
initialize() {
|
||||
@@ -46,6 +46,7 @@ class TestView extends Backbone.View<TestModel> {
|
||||
testCollection: TestCollection;
|
||||
|
||||
constructor(viewOptions?: Backbone.ViewOptions<TestModel>) {
|
||||
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<TestModel> {
|
||||
collection:this.testCollection,
|
||||
});
|
||||
|
||||
super(viewOptions);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user