Skip to content

Commit

Permalink
Merge pull request #266 from movabletype/options-smooth-boolean
Browse files Browse the repository at this point in the history
Use the @options.smooth directly if the value's type is "boolean".
  • Loading branch information
oesmith committed Oct 12, 2013
2 parents b98ae8a + 13af310 commit 4345fa3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/morris.line.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Morris.Line extends Morris.Grid
# @private
generatePaths: ->
@paths = for i in [0...@options.ykeys.length]
smooth = @options.smooth is true or @options.ykeys[i] in @options.smooth
smooth = if typeof @options.smooth is "boolean" then @options.smooth else @options.ykeys[i] in @options.smooth
coords = ({x: r._x, y: r._y[i]} for r in @data when r._y[i] isnt undefined)
coords = (c for c in coords when c.y isnt null) if @options.continuousLine

Expand Down
2 changes: 1 addition & 1 deletion morris.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4345fa3

Please sign in to comment.