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
4694dc84
authored
2014-04-14 17:35:43 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Simplify rivetsBinderCall, as it doesn't make much sense to have that
function contain so many smarts.
1 parent
219209c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
src/scripts/rivets-error-binder.js
src/scripts/rivets-error-binder.js
View file @
4694dc8
...
...
@@ -8,15 +8,7 @@ define([
'use strict'
;
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
render
=
function
()
{
...
...
Please
register
or
sign in
to post a comment