From eae1880ef45f0a4a1cd9c92d403f78f3ae1e0df8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 12 Dec 2016 16:20:13 -0500 Subject: Deprecate the `args` argument of Parallimiter.addCallable(). --- jarmon/jarmon.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js index 5f17e50..3357864 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -1152,7 +1152,7 @@ jarmon.buildTabbedChartUi = function ($chartTemplate, chartRecipes, $controlPanelTemplate) { var p = new jarmon.Parallimiter(2); function serialDownloader(url) { - return p.addCallable(jarmon.downloadBinary, [url]); + return p.addCallable(function(){ return jarmon.downloadBinary(url); }); } var ti = new jarmon.TabbedInterface($tabTemplate, tabRecipes); @@ -1664,6 +1664,8 @@ jarmon.Parallimiter = function(limit) { * Add a function to be called when the number of in progress calls drops * below the configured limit * + * @todo Remove the `args` argument in favor of passing in closures. + * * @method * @param callable {function} A function which returns a Deferred. * @param args {Array} A list of arguments to pass to the callable -- cgit v1.1-4-g5e80