Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
backbone-model-overlay
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5dfa8584
authored
2016-06-21 15:34:17 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix incorrect call in set() to parent.
1 parent
12ab5ac8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/scripts/backbone-model-overlay.js
src/scripts/backbone-model-overlay.spec.js
src/scripts/backbone-model-overlay.js
View file @
5dfa858
...
...
@@ -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
)
{
...
...
src/scripts/backbone-model-overlay.spec.js
View file @
5dfa858
...
...
@@ -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
:
'New
Child'
},
{
inParent
:
'Parent'
,
newParent
:
'
NewParent'
,
inChild
:
'Child'
,
newChild
:
'Old
Child'
},
]);
});
it
(
'get:attributes'
,
function
()
{
...
...
Please
register
or
sign in
to post a comment