<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to destroy a component by id in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-destroy-a-component-by-id/m-p/99425#M9102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mr Riyas Deen：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks very much ，your answer general right，but maybe change the dojo to dijit like&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;if (dijit.byId(id)) { dijit.byId(id).destroyRecursive(); }&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Aug 2014 08:37:18 GMT</pubDate>
    <dc:creator>xiaoyunnsongb</dc:creator>
    <dc:date>2014-08-31T08:37:18Z</dc:date>
    <item>
      <title>How to destroy a component by id</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-destroy-a-component-by-id/m-p/99423#M9100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello superiors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now I&amp;nbsp; have&amp;nbsp; a question like this：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I create a component&amp;nbsp; use :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var &lt;SPAN class="nx"&gt;myDialog&lt;/SPAN&gt; &lt;SPAN class="o" style="color: #666666;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="k" style="color: #007020; font-weight: bold;"&gt;new&lt;/SPAN&gt; dijit.&lt;SPAN class="nx"&gt;Dialog&lt;/SPAN&gt;&lt;SPAN class="p"&gt;({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id:"&lt;SPAN class="nx"&gt;myDialog&lt;/SPAN&gt; ",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="p"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;when I create this dialog second ， the&amp;nbsp; error&amp;nbsp; prompt that&amp;nbsp; the id has been registerred。&lt;/P&gt;&lt;P&gt;now I want to destroy the dialog&amp;nbsp; by id&amp;nbsp; before I create the dialog again ，how can i do it , thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2014 01:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-destroy-a-component-by-id/m-p/99423#M9100</guid>
      <dc:creator>xiaoyunnsongb</dc:creator>
      <dc:date>2014-08-30T01:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to destroy a component by id</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-destroy-a-component-by-id/m-p/99424#M9101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi xiaoyunn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this before your create widget call. If a widget with the id is available it'll delete it before creating the widget. &lt;A href="http://dojotoolkit.org/documentation/tutorials/1.10/understanding_widgetbase/" title="http://dojotoolkit.org/documentation/tutorials/1.10/understanding_widgetbase/"&gt;Understanding _WidgetBase - The Dojo Toolkit&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (dojo.byId(id)) { dojo.byId(id).destroyRecursive(false); }&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2014 10:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-destroy-a-component-by-id/m-p/99424#M9101</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-30T10:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to destroy a component by id</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-destroy-a-component-by-id/m-p/99425#M9102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mr Riyas Deen：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks very much ，your answer general right，but maybe change the dojo to dijit like&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;if (dijit.byId(id)) { dijit.byId(id).destroyRecursive(); }&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2014 08:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-destroy-a-component-by-id/m-p/99425#M9102</guid>
      <dc:creator>xiaoyunnsongb</dc:creator>
      <dc:date>2014-08-31T08:37:18Z</dc:date>
    </item>
  </channel>
</rss>

