From 7a72eb3ed36926b09c5598780035cfe118950cd8 Mon Sep 17 00:00:00 2001 From: Olly Smith Date: Tue, 28 Feb 2012 21:06:55 +0000 Subject: [PATCH] Simplify $.extend call. --- morris.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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