Skip to content

Commit 07c7109

Browse files
myabcvieron
authored andcommitted
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().
1 parent ff51187 commit 07c7109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.gridster.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
* @constructor
115115
*/
116116
function Gridster(el, options) {
117-
this.options = $.extend(true, defaults, options);
117+
this.options = $.extend(true, {}, defaults, options);
118118
this.$el = $(el);
119119
this.$wrapper = this.$el.parent();
120120
this.$widgets = this.$el.children(

0 commit comments

Comments
 (0)