From 80c60aca832bdc35e05b0986a40c6fdc54cd9cdf Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Mon, 1 Dec 2014 17:51:17 -0800 Subject: [PATCH] update gridstack.js --- gridstack.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gridstack.js b/gridstack.js index 2f2b0ed..90ac8a7 100644 --- a/gridstack.js +++ b/gridstack.js @@ -490,7 +490,8 @@ }; GridStack.prototype.remove_widget = function (el) { - var node = $(el).data('_gridstack_node'); + el = $(el); + var node = el.data('_gridstack_node'); this.grid.remove_node(node); el.remove(); this._update_container_height();