1 | (function(){
|
2 | var colors=require('colors');
|
3 |
|
4 | var $={
|
5 | extend: function(obj,props){
|
6 | for( var method in props){
|
7 | obj[method]=props[method];
|
8 | }
|
9 | return obj;
|
10 | },
|
11 |
|
12 | each: function(list,callback){
|
13 | Array.prototype.forEach.call(list,callback);
|
14 | },
|
15 |
|
16 | proxy: function(func,caller){
|
17 | return function(){
|
18 | return func.apply(caller,Array.prototype.slice.call(arguments));
|
19 | };
|
20 | }
|
21 | };
|
22 |
|
23 | $.extend(exports,$);
|
24 | }).call(this); |
\ | No newline at end of file |