diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-08-14 23:22:37 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-08-14 23:22:37 -0700 |
commit | 211e5d1155e82ccbbc188dc889600459a62229fb (patch) | |
tree | d5d17976dabe7ae8c9af8a3286844fd8e9663524 /ext/fg/js/util.js | |
parent | 61dde5b3b74030d7b01c195751a54e9dcacdb6bb (diff) |
cleanup
Diffstat (limited to 'ext/fg/js/util.js')
-rw-r--r-- | ext/fg/js/util.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/fg/js/util.js b/ext/fg/js/util.js index afa895ba..3faf3b47 100644 --- a/ext/fg/js/util.js +++ b/ext/fg/js/util.js @@ -17,6 +17,12 @@ */ +function utilAsync(func) { + return function(...args) { + func.apply(this, args); + }; +} + function utilInvoke(action, params={}) { return new Promise((resolve, reject) => { try { |