Gravit Designer discussion

$.gDialog('close') results in an error on second call

Reproduce by pasting this into the console:

var $d = $('<div>dialog</div>'); $d.gDialog({});
// 1st call, fine
// 2nd call, error: Uncaught TypeError:
// Cannot read property 'options' of undefined


Hi @owzim, thanks for reporting it. I can reproduce it and will file it for fixing.
For now, if you need to make two calls on gDialog, you can, on each call, generate gDialog code again, using $d.gDialog({});

Thanks for the catch.

1 Like