60fee3ddd2f689481ccab053da58df883e8e789e
[platform/framework/web/crosswalk-tizen.git] /
1 define(['./forIn'], function (forIn) {
2
3     /**
4      * return a list of all enumerable properties that have function values
5      */
6     function functions(obj){
7         var keys = [];
8         forIn(obj, function(val, key){
9             if (typeof val === 'function'){
10                 keys.push(key);
11             }
12         });
13         return keys.sort();
14     }
15
16     return functions;
17
18 });