Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f07ef1

Browse files
committed
update gridstack.js
1 parent d26c2d6 commit 7f07ef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gridstack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,10 @@
470470

471471
GridStack.prototype._init_styles = function () {
472472
if (this._styles_id) {
473-
$('link[rel=stylesheet][data-gs-id=' + this._styles_id + ']').remove();
473+
$('[data-gs-id="' + this._styles_id + '"]').remove();
474474
}
475475
this._styles_id = 'gridstack-style-' + (Math.random() * 100000).toFixed();
476-
this._styles = Utils.create_stylesheet();
476+
this._styles = Utils.create_stylesheet(this._styles_id);
477477
if (this._styles != null)
478478
this._styles._max = 0;
479479
};

0 commit comments

Comments
 (0)