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
f5cbc93d
authored
2015-12-15 17:14:41 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add bind/unbind calls into the render helper.
1 parent
b47edc3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/scripts/rivets-error-binder.js
src/scripts/rivets-error-binder.js
View file @
f5cbc93
...
...
@@ -47,9 +47,11 @@ define([
};
$
(
el
).
on
(
'focus'
,
holder
.
focus
).
on
(
'blur'
,
holder
.
blur
);
rivetsBinderCall
(
this
,
this
.
args
[
0
],
'bind'
,
arguments
);
render
(
el
,
'bind'
);
},
unbind
:
function
(
el
)
{
var
holder
=
this
.
validationHolder
;
render
(
el
,
'unbind'
);
$
(
this
.
validationHolder
.
marker
).
after
(
el
).
remove
();
$
(
el
).
off
(
'focus'
,
holder
.
focus
).
off
(
'blur'
,
holder
.
blur
);
if
(
holder
.
observer
.
target
)
{
...
...
Please
register
or
sign in
to post a comment