Use more descriptive method name

Signed-off-by: John Wu <webmaster@leapoahead.com>
This commit is contained in:
John Wu 2015-10-06 14:50:15 -07:00
parent d50af7dec9
commit 2e78ef0128

View File

@ -191,7 +191,7 @@
/**
* Helper function to add a point into a series, also checks whether the point is within dateRange
*/
QueryResult.prototype._addPointToSeriesChecked = function (point, seriesCollection, seriesName, dateRange) {
QueryResult.prototype._addPointToSeriesIfInDateRange = function (point, seriesCollection, seriesName, dateRange) {
if (point.x.isBefore(dateRange.min) || point.x.isAfter(dateRange.max)) {
// if the point's date isn't within dateRange, then we will not add this point to series
return;
@ -262,7 +262,7 @@
});
} else if (dateRange && moment.isMoment(point.x)) {
// Check whether the x axis is of type datetime and whether the dateRange feature is enabled (by checking if dateRange object is provided). If so, we will want to filter points based on dateRange set.
this._addPointToSeriesChecked(point, series, seriesName, dateRange);
this._addPointToSeriesIfInDateRange(point, series, seriesName, dateRange);
}
else {
this._addPointToSeries(point, series, seriesName);