I have prepared a simple test case to demonstrate my problem -
I use a jQuery UI button to open a jQuery UI dialog:
However this works only once. On subsequent button clicks I get the error:
Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'open'