I seem to have found a bug. If I try to use $('#someelement').block ({ message: $('#loadingMessage') }); Then when I unblock with $('#someelement').unblock(); the loading message is removed from the DOM, so any subsequent calls to block it fail and cause a JS error. Everything works fine if I block the whole page with $.blockUI({ message: $('#loadingMessage') }); then $.unblockUI(); but I don't want to block the whole UI.
Is this a bug or am I doing something wrong?