diff --git a/src/gridstack.js b/src/gridstack.js index 7a95818..fc1ed68 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -465,7 +465,7 @@ else if (typeof this._styles.deleteRule === 'function') f = this._styles.deleteRule; while (this._styles.rules.length) { - f(0); + f.call(this._styles, 0); } this._update_container_height(); }