From 7f07ef14aca9e439470a4339ca88976d32e65527 Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Sun, 8 Mar 2015 12:03:21 -0700 Subject: [PATCH] update gridstack.js --- gridstack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gridstack.js b/gridstack.js index 8a4f12a..e5f0baf 100644 --- a/gridstack.js +++ b/gridstack.js @@ -470,10 +470,10 @@ GridStack.prototype._init_styles = function () { if (this._styles_id) { - $('link[rel=stylesheet][data-gs-id=' + this._styles_id + ']').remove(); + $('[data-gs-id="' + this._styles_id + '"]').remove(); } this._styles_id = 'gridstack-style-' + (Math.random() * 100000).toFixed(); - this._styles = Utils.create_stylesheet(); + this._styles = Utils.create_stylesheet(this._styles_id); if (this._styles != null) this._styles._max = 0; };