aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-08-14 23:22:37 -0700
committerAlex Yatskov <alex@foosoft.net>2017-08-14 23:22:37 -0700
commit211e5d1155e82ccbbc188dc889600459a62229fb (patch)
treed5d17976dabe7ae8c9af8a3286844fd8e9663524 /ext/fg/js/util.js
parent61dde5b3b74030d7b01c195751a54e9dcacdb6bb (diff)
cleanup
Diffstat (limited to 'ext/fg/js/util.js')
-rw-r--r--ext/fg/js/util.js6
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 {