update gridstack.js

This commit is contained in:
Pavel Reznikov 2015-03-08 12:03:21 -07:00
commit 7f07ef14ac

View file

@ -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;
};