Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets-error-binder
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
645f3f28
authored
2016-09-01 11:23:45 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Even when there is no target, we should note the path as being seen.
1 parent
3c1a9693
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
src/scripts/rivets-error-binder.js
src/scripts/rivets-error-binder.js
View file @
645f3f2
...
...
@@ -43,9 +43,7 @@ define(function(require) {
render
(
el
,
'focus'
,
false
);
},
blur
:
function
()
{
if
(
observer
.
target
)
{
holder
.
seen
[
observer
.
key
.
path
]
=
true
;
}
holder
.
seen
[
observer
.
key
.
path
]
=
true
;
render
(
el
,
'blur'
,
false
);
if
(
observer
.
target
)
{
observer
.
target
.
validate
();
...
...
@@ -53,7 +51,7 @@ define(function(require) {
},
validated
:
function
(
isValid
,
model
,
errors
)
{
var
errorList
=
errors
[
observer
.
key
.
path
];
if
(
errorList
&&
observer
.
target
&&
holder
.
seen
[
holder
.
observer
.
key
.
path
])
{
if
(
errorList
&&
holder
.
seen
[
holder
.
observer
.
key
.
path
])
{
render
(
el
,
'validated'
,
errorList
);
}
else
{
render
(
el
,
'validated'
,
false
);
...
...
Please
register
or
sign in
to post a comment