5dfa8584 by Adam Heath

Fix incorrect call in set() to parent.

1 parent 12ab5ac8
...@@ -64,7 +64,7 @@ define(function(require) { ...@@ -64,7 +64,7 @@ define(function(require) {
64 var parent = this._parent; 64 var parent = this._parent;
65 if (parent) { 65 if (parent) {
66 if (!options.overlay) { 66 if (!options.overlay) {
67 return parent.set.apply(this, arguments); 67 return parent.set.apply(parent, arguments);
68 } 68 }
69 var override = this._override; 69 var override = this._override;
70 _.each(attrs, function(value, key) { 70 _.each(attrs, function(value, key) {
......
...@@ -106,7 +106,7 @@ define(function(require) { ...@@ -106,7 +106,7 @@ define(function(require) {
106 }); 106 });
107 it('get:perAttributeChange', function() { 107 it('get:perAttributeChange', function() {
108 expect(perAttributeChange).toEqual({ 108 expect(perAttributeChange).toEqual({
109 newParent: ['OldParent', 'OldParent', 'NewParent', 'NewParent', 'NewParent'], 109 newParent: ['OldParent', 'OldParent', 'NewParent', 'NewParent'],
110 newChild: ['OldChild', 'NewChild'], 110 newChild: ['OldChild', 'NewChild'],
111 passThruParent: ['PassThruParent'], 111 passThruParent: ['PassThruParent'],
112 }); 112 });
...@@ -120,7 +120,7 @@ define(function(require) { ...@@ -120,7 +120,7 @@ define(function(require) {
120 {inParent: 'Parent', inChild: 'Child'}, 120 {inParent: 'Parent', inChild: 'Child'},
121 {inParent: 'Parent', newParent: 'OldParent', inChild: 'Child'}, 121 {inParent: 'Parent', newParent: 'OldParent', inChild: 'Child'},
122 {inParent: 'Parent', newParent: 'OldParent', inChild: 'Child', newChild: 'OldChild'}, 122 {inParent: 'Parent', newParent: 'OldParent', inChild: 'Child', newChild: 'OldChild'},
123 {inParent: 'Parent', newParent: 'OldParent', inChild: 'Child', newChild: 'NewChild'}, 123 {inParent: 'Parent', newParent: 'NewParent', inChild: 'Child', newChild: 'OldChild'},
124 ]); 124 ]);
125 }); 125 });
126 it('get:attributes', function() { 126 it('get:attributes', function() {
......