mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-13 07:11:12 +01:00
removed .call() call - not needed
This commit is contained in:
parent
381be72f61
commit
24f11c6497
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
2
morris.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue