Author: woodser
Date: Fri Aug 12 20:24:54 2011
New Revision: 1157235

URL: http://svn.apache.org/viewvc?rev=1157235&view=rev
Log:
Minor fix to sample Media gadget: call dialog.hide() prior to recursively 
destroying dojo elements for proper destroy-ment.

Modified:
    shindig/trunk/content/samplecontainer/examples/media/MediaUI.js

Modified: shindig/trunk/content/samplecontainer/examples/media/MediaUI.js
URL: 
http://svn.apache.org/viewvc/shindig/trunk/content/samplecontainer/examples/media/MediaUI.js?rev=1157235&r1=1157234&r2=1157235&view=diff
==============================================================================
--- shindig/trunk/content/samplecontainer/examples/media/MediaUI.js (original)
+++ shindig/trunk/content/samplecontainer/examples/media/MediaUI.js Fri Aug 12 
20:24:54 2011
@@ -363,6 +363,7 @@ function MediaUI(social) {
         // Handles destroying the dialog popup
         function destroyDialog() {
             console.log('destroyDialog');
+            dialog.hide();
             dialog.destroyRecursive(false);
             dialog.destroyRendering(false);
             dialog.destroy(false);
@@ -491,6 +492,7 @@ function MediaUI(social) {
         // Handles destroying the dialog popup
         function destroyDialog() {
             console.log('destroyDialog');
+            dialog.hide();
             dialog.destroyRecursive(false);
             dialog.destroyRendering(false);
             dialog.destroy(false);


Reply via email to