Note that there are some explanatory texts on larger screens.

plurals
  1. PODojo Dialog onEnd() animation exception
    primarykey
    data
    text
    <p>I have a problem with the Dojo Dijit Dialog .hide() method during the animation sequence. I am using Dojo 1.7 with Tundra theme. I have a cancel button in my dialog that closes the dialog.</p> <pre><code> var global_welcome = new Dialog({ id: 'global_welcome', style: "width: 750px", draggable: false, content: '&lt;button type="button" id="global_welcomeCancel"&gt; Cancel &lt;/button&gt;', onShow : function () { on(dojo.byId('global_welcomeCancel'), "click", function (evt) { dojo.stopEvent(evt); global_welcome.hide(); }); }); } }); </code></pre> <p>This produces the following error on Firebug:</p> <pre><code>exception in animation handler for: onEnd fx.js (line 152) TypeError: this._fadeOutDeferred is undefined this._fadeOutDeferred.callback(true); </code></pre> <p>Previous answers to this error but with destroyRecursive instead of hide suggests it has to do with the dialog being destroyed before the animation finishes. I tried using dojo.hitch() and setTimeOut but that didn't seem to work. Also what is puzzling is that the first time I open this dialog using global_welcome.show() (called by another button), and press the cancel button, it works without error. The second time and afterwards, it produces the above error message. Additionally, the default close button for dojo dialogs on the top right corner never causes this error. Perhaps I could just have onShow call the methods that the close button calls?</p> <p>Can someone help me out please? Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload