5dfa8584 by Adam Heath

Fix incorrect call in set() to parent.

1 parent 12ab5ac8
......@@ -64,7 +64,7 @@ define(function(require) {
var parent = this._parent;
if (parent) {
if (!options.overlay) {
return parent.set.apply(this, arguments);
return parent.set.apply(parent, arguments);
}
var override = this._override;
_.each(attrs, function(value, key) {
......
......@@ -106,7 +106,7 @@ define(function(require) {
});
it('get:perAttributeChange', function() {
expect(perAttributeChange).toEqual({
newParent: ['OldParent', 'OldParent', 'NewParent', 'NewParent', 'NewParent'],
newParent: ['OldParent', 'OldParent', 'NewParent', 'NewParent'],
newChild: ['OldChild', 'NewChild'],
passThruParent: ['PassThruParent'],
});
......@@ -120,7 +120,7 @@ define(function(require) {
{inParent: 'Parent', inChild: 'Child'},
{inParent: 'Parent', newParent: 'OldParent', inChild: 'Child'},
{inParent: 'Parent', newParent: 'OldParent', inChild: 'Child', newChild: 'OldChild'},
{inParent: 'Parent', newParent: 'OldParent', inChild: 'Child', newChild: 'NewChild'},
{inParent: 'Parent', newParent: 'NewParent', inChild: 'Child', newChild: 'OldChild'},
]);
});
it('get:attributes', function() {
......