4694dc84 by Adam Heath

Simplify rivetsBinderCall, as it doesn't make much sense to have that

function contain so many smarts.
1 parent 219209c6
......@@ -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() {
......