From 18b620f6cecaad773d804f1e27b68a651bb346f1 Mon Sep 17 00:00:00 2001 From: vieron Date: Fri, 20 Jul 2012 15:47:39 +0200 Subject: [PATCH] the remove_widget callback must be inside the fadeout callback --- src/jquery.gridster.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 380f8cc7d..f83c5d741 100644 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -234,11 +234,11 @@ $nexts.each($.proxy(function(i, widget){ this.move_widget_up( $(widget), wgd.size_y ); }, this)); - }, this)); - if (callback) { - callback.apply(el); - }; + if (callback) { + callback.apply(this, el); + }; + }, this)); };