mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user