From 47e7812e58c75d80ee9f2ecbfea4bebff00c91f0 Mon Sep 17 00:00:00 2001 From: Verneuil Julien Date: Tue, 28 Apr 2015 01:27:53 +0200 Subject: [PATCH] added a function to format a javascript function call --- web/js_tools.anubis | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/web/js_tools.anubis b/web/js_tools.anubis index 99ad31b..158eb3b 100644 --- a/web/js_tools.anubis +++ b/web/js_tools.anubis @@ -6,6 +6,8 @@ * © Calexium */ +read tools/basis.anubis + define List(Word8) make_js_string ( @@ -35,3 +37,11 @@ public define String ) = implode(make_js_string(explode(str), [])). + +public define String + format_js_function_call + ( + String name, + List(String) args + ) = + name + "(" + concat(args, ",") + ");". -- libgit2 0.21.4