mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
Simplify $.extend call.
This commit is contained in:
parent
d059c3acaf
commit
7a72eb3ed3
@ -9,7 +9,7 @@ class Morris.Line
|
||||
if not (this instanceof Morris.Line)
|
||||
return new Morris.Line(options)
|
||||
@el = $ document.getElementById(options.element)
|
||||
@options = $.extend $.extend({}, @defaults), options
|
||||
@options = $.extend {}, @defaults, options
|
||||
# bail if there's no data
|
||||
if @options.data is undefined or @options.data.length is 0
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user