Skip to content

Commit

Permalink
Fix JSDoc (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
chovanecm committed Jul 7, 2017
1 parent f12bfa1 commit 33905fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion sacredboard/static/scripts/metricsPlot/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ define(["knockout", "text!./template.html", "plot/component", "runs/Metric"],
/**
* ViewModel of the metrics-plot component.
*
* It holds all the metrics available,
* It holds all the metrics available, the metrics selected by
* the user to be plotted and calculates the actual series
* for the plot-chart component.
*
* @param {{availableMetrics}} params - Parameters of the viewModel.
* @param {Metric[]} params.availableMetrics - Knockout observable array of {@link Metric}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ define(["runs/Metric", "knockout", "jquery"], function (Metric, ko, $) {
/**
* Trigger when the metric couldn't be loaded.
*
* @param textStatus
* @param error
* @param {string} textStatus - Status returned by the HTTP request.
* @param {string} error - Error type returned by the HTTP request.
* @param {string} name - Name of the metric that have failed to load.
*/
onLoadFail(textStatus, error, name) {
/* override the method if possible */
alert("Error when loading metric " + name + ".\nError message: " + textStatus + "\nError:" + error);
};
}

}
return ProxiedMetric;
Expand Down

0 comments on commit 33905fd

Please sign in to comment.