mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
adhoc fix backbone/backbone-with-lodash-tests.ts and backbone/backbone-tests.ts
This commit is contained in:
@@ -29,11 +29,11 @@ class SettingDefaults extends Backbone.Model {
|
||||
}
|
||||
|
||||
constructor(attributes?: any, options?: any) {
|
||||
super(attributes, options); // error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class.
|
||||
this.defaults = <any>{
|
||||
name: "Joe"
|
||||
}
|
||||
// super has to come last
|
||||
super(attributes, options);
|
||||
}
|
||||
|
||||
// or set it like this
|
||||
|
||||
@@ -30,11 +30,11 @@ class SettingDefaults extends Backbone.Model {
|
||||
}
|
||||
|
||||
constructor(attributes?: any, options?: any) {
|
||||
super(attributes, options); // TODO error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class.
|
||||
this.defaults = <any>{
|
||||
name: "Joe"
|
||||
}
|
||||
// super has to come last
|
||||
super(attributes, options);
|
||||
}
|
||||
|
||||
// or set it like this
|
||||
|
||||
Reference in New Issue
Block a user