diff --git a/morris.coffee b/morris.coffee index 10beb7e..02a944d 100644 --- a/morris.coffee +++ b/morris.coffee @@ -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