Sean Wilkinson avatar Sean Wilkinson committed 1420371

`volunteer` now passes arguments to `jobs`

Comments (0)

Files changed (1)

 //          prototype definitions use ES5 getters and setters, too. I would
 //          need to abandon most (if not all) use of getters and setters ...
 //
-//                                                      ~~ (c) SRW, 08 Sep 2012
+//                                                      ~~ (c) SRW, 18 Sep 2012
 
 (function (global) {
     'use strict';
      // the task so that the underlying system (not Quanah) can control system
      // resources itself. Examples will be included in the distribution that
      // will accompany the upcoming publication(s).
-        var task = avar();
+        var args, task;
+        args = Array.prototype.slice.call(arguments);
+        task = avar();
         task.onready = function (evt) {
          // This function retrieves the key of a task from the queue so we
          // can retrieve that task's full description. If no tasks are found,
             if (sys.jobs === null) {
                 return evt.fail('Waiting for a `jobs` definition ...');
             }
-            var temp = sys.jobs();
+            var temp = sys.jobs.apply(null, args);
             temp.onerror = function (message) {
              // This function notifies `task` that something has gone wrong
              // during retrieval and interpretation of its description.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.