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([ ...@@ -8,15 +8,7 @@ define([
8 'use strict'; 8 'use strict';
9 var rivetsBinderCall = function(binding, binderName, methodName, args) { 9 var rivetsBinderCall = function(binding, binderName, methodName, args) {
10 var binder = rivets.binders[binderName]; 10 var binder = rivets.binders[binderName];
11 if (binder instanceof Function) { 11 binder[methodName].apply(binding, args);
12 if (methodName === 'routine') {
13 binder.apply(binding, args);
14 }
15 } else if (binder) {
16 if (binder[methodName]) {
17 binder[methodName].apply(binding, args);
18 }
19 }
20 }; 12 };
21 13
22 var render = function() { 14 var render = function() {
......