summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-12 16:20:13 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-12 16:20:13 -0500
commiteae1880ef45f0a4a1cd9c92d403f78f3ae1e0df8 (patch)
tree6aee301a620a3750f27e2ad336e7cd7a2608bb2a
parentc790d30de18070cd0782316caf37300211524a4a (diff)
Deprecate the `args` argument of Parallimiter.addCallable().
-rw-r--r--jarmon/jarmon.js4
1 files changed, 3 insertions, 1 deletions
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