fix(gridster): leaking options with multiple Gridster instances

`defaults` was being overwritten.

See [jQuery documentation](http://api.jquery.com/jQuery.extend/):

> Keep in mind that the target object (first argument) will be modified, and will also be returned from $.extend().
This commit is contained in:
Alex Coles
2014-02-07 14:48:53 +01:00
committed by vieron
parent 429c776aa9
commit 7ed79e5672
+1 -1
View File
@@ -114,7 +114,7 @@
* @constructor
*/
function Gridster(el, options) {
this.options = $.extend(true, defaults, options);
this.options = $.extend(true, {}, defaults, options);
this.$el = $(el);
this.$wrapper = this.$el.parent();
this.$widgets = this.$el.children(