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
0ff9ecf9
authored
2014-03-20 12:51:03 -0500
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add support function
1 parent
205da5be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
rivets-error-binder.js
rivets-error-binder.js
View file @
0ff9ecf
define
([
'rivets'
],
function
(
rivets
)
{
var
rivetsBinderCall
=
function
(
binding
,
binderName
,
methodName
,
args
)
{
var
binder
=
rivets
.
binders
[
binderName
];
if
(
binder
instanceof
Function
)
{
if
(
methodName
==
'routine'
)
{
binder
.
apply
(
binding
,
args
);
};
}
else
if
(
binder
)
{
if
(
binder
[
methodName
])
{
binder
[
methodName
].
apply
(
binding
,
args
);
}
}
}
var
diveIntoObject
=
function
(
obj
,
keypath
,
callback
)
{
if
(
!
keypath
)
{
return
callback
(
obj
,
null
);
...
...
Please
register
or
sign in
to post a comment