whole_func_string: function cancelRestRequests(category) {
      _.each(restXhrPool, function (xhr) {
          if (category && (!xhr.girder || !xhr.girder[category])) {
              return;
          }
          if (xhr.abort) {
              xhr.abort();
          }
      });
  }
func_code_string: function cancelRestRequests(category) {
      _.each(restXhrPool, function (xhr) {
          if (category && (!xhr.girder || !xhr.girder[category])) {
              return;
          }
          if (xhr.abort) {
              xhr.abort();
          }
      });
  }
func_documentation_string: /* Cancel outstanding rest requests.
  :param category: if specified, only abort those requests that have
  xhr.girder[category] set to a truthy value.