Skip to content

Commit 481401c

Browse files
committed
No need to bail any more when initialising with no data.
1 parent 6e0e5f0 commit 481401c

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

lib/morris.grid.coffee

-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ class Morris.Grid extends Morris.EventEmitter
1717

1818
@options = $.extend {}, @gridDefaults, (@defaults || {}), options
1919

20-
# bail if there's no data
21-
if @options.data is undefined or @options.data.length is 0
22-
return
23-
2420
# backwards compatibility for units -> postUnits
2521
if typeof @options.units is 'string'
2622
@options.postUnits = options.units

morris.js

-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)