(obj)
| 73 | // |
| 74 | // !!! This is not recursive (not needed) |
| 75 | function methodObj(obj) { |
| 76 | var methods = _.methods(obj); |
| 77 | var newObj = {}; |
| 78 | |
| 79 | methods.forEach(function(method) { |
| 80 | newObj[method] = obj[method].bind(obj); |
| 81 | }); |
| 82 | |
| 83 | return newObj; |
| 84 | } |
| 85 | |
| 86 | // Return a timestamp of the curent time |
| 87 | function timestamp() { |