0ff9ecf9 by Ean Schuessler

Add support function

1 parent 205da5be
1 define(['rivets'], function(rivets) { 1 define(['rivets'], function(rivets) {
2 var rivetsBinderCall = function(binding, binderName, methodName, args) {
3 var binder = rivets.binders[binderName];
4 if (binder instanceof Function) {
5 if (methodName == 'routine') {
6 binder.apply(binding, args);
7 };
8 } else if (binder) {
9 if (binder[methodName]) {
10 binder[methodName].apply(binding, args);
11 }
12 }
13 }
14
2 var diveIntoObject = function(obj, keypath, callback) { 15 var diveIntoObject = function(obj, keypath, callback) {
3 if (!keypath) { 16 if (!keypath) {
4 return callback(obj, null); 17 return callback(obj, null);
......