mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
adhoc fix backbone-associations/backbone-associations-tests.ts
This commit is contained in:
1 parent
6ecf96f408
commit
9d11eef8b7
1 file changed
+2
-2
@@ -7,6 +7,7 @@ module Backbone.Associations.Tests {
|
||||
module OneToOne {
|
||||
class EmployeeWithManager extends Backbone.AssociatedModel {
|
||||
constructor(options?) {
|
||||
super(options);
|
||||
this.relations = [
|
||||
{
|
||||
type: Backbone.One, //nature of the relationship
|
||||
@@ -14,7 +15,6 @@ module Backbone.Associations.Tests {
|
||||
relatedModel: 'Employee' //AssociatedModel for attribute key
|
||||
}
|
||||
];
|
||||
super(options);
|
||||
}
|
||||
|
||||
defaults() {
|
||||
@@ -48,6 +48,7 @@ module Backbone.Associations.Tests {
|
||||
|
||||
class Project extends Backbone.AssociatedModel {
|
||||
constructor(options?) {
|
||||
super(options);
|
||||
this.relations = [
|
||||
{
|
||||
type: Backbone.Many, //nature of the relation
|
||||
@@ -56,7 +57,6 @@ module Backbone.Associations.Tests {
|
||||
relatedModel: Location //Optional
|
||||
}
|
||||
];
|
||||
super(options);
|
||||
}
|
||||
|
||||
defaults() {
|
||||
|
||||
Reference in new issue
Block a user