|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
308 bytes
|
| Line | |
|---|
| 1 | define(['./isFunction'], function (isFunction) {
|
|---|
| 2 |
|
|---|
| 3 | // Return a sorted list of the function names available on the object.
|
|---|
| 4 | function functions(obj) {
|
|---|
| 5 | var names = [];
|
|---|
| 6 | for (var key in obj) {
|
|---|
| 7 | if (isFunction(obj[key])) names.push(key);
|
|---|
| 8 | }
|
|---|
| 9 | return names.sort();
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | return functions;
|
|---|
| 13 |
|
|---|
| 14 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.