Yes, `doRedraw()` calls `toggle($element);` which in turn triggers these two show/hide functions that is in module scope. So `isResizing` var needs to be in module scope.