Add support function
Showing
1 changed file
with
13 additions
and
0 deletions
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); | ... | ... |
-
Please register or sign in to post a comment