removed .call() call - not needed

This commit is contained in:
Marcin Chwedziak 2012-12-13 22:41:03 +01:00
parent 381be72f61
commit 24f11c6497
3 changed files with 3 additions and 3 deletions

View File

@ -255,7 +255,7 @@ class Morris.Grid extends Morris.EventEmitter
# @private
#
yLabelFormat: (label) ->
@options.yLabelFormat.call(@, label, @options.preUnits, @options.postUnits)
@options.yLabelFormat(label, @options.preUnits, @options.postUnits)
# Parse a date into a javascript timestamp

View File

@ -359,7 +359,7 @@
};
Grid.prototype.yLabelFormat = function(label) {
return this.options.yLabelFormat.call(this, label, this.options.preUnits, this.options.postUnits);
return this.options.yLabelFormat(label, this.options.preUnits, this.options.postUnits);
};
return Grid;

2
morris.min.js vendored

File diff suppressed because one or more lines are too long