diff --git a/backbone-associations/backbone-associations-tests.ts b/backbone-associations/backbone-associations-tests.ts index d25ddf17e..5f656b8f2 100644 --- a/backbone-associations/backbone-associations-tests.ts +++ b/backbone-associations/backbone-associations-tests.ts @@ -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() {