Simplify $.extend call.

This commit is contained in:
Olly Smith 2012-02-28 21:06:55 +00:00
parent d059c3acaf
commit 7a72eb3ed3

View File

@ -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