From f5ee39eafa9ef71fc3259b4c59e9c64784d5be18 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Sun, 24 Feb 2019 14:05:59 +0100 Subject: [PATCH] =?UTF-8?q?more=20documentation=20for=20js=20util=20=C2=BB?= =?UTF-8?q?setup=C2=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/utils/setup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/utils/setup.js b/static/js/utils/setup.js index b7296586f..36e61a9b7 100644 --- a/static/js/utils/setup.js +++ b/static/js/utils/setup.js @@ -8,8 +8,8 @@ /** * setup function to initiate a util (utilName) on a scope (sope) with options (options). * - * A util has to define an itself at `window.utils` as shown for the `autoSubmit` util: - * `window.utils.autoSubmit = function(wrapper, options) { ... };` + * Utils need to be defined as property of `window.utils` and need to accept a scope and (optionally) options. + * Example: `window.utils.autoSubmit = function(scope, options) { ... };` */ window.utils.setup = function(utilName, scope, options) {