<?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: WAB Source Code of Layer List Widget in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-source-code-of-layer-list-widget/m-p/209766#M5803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the issue is that the code you posted was embedded within a larger object. Notice how your code is: destroy&lt;STRONG&gt;:&lt;/STRONG&gt; function () .... not&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;destroy &lt;STRONG&gt;=&lt;/STRONG&gt; function() ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code is defining a destroy property in an object, not a variable named destroy, so in this case the comma is correct (it separates the declaration of the destroy property from the declaration of whatever was the next property in the object).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lifecycle = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;destroy: function () {},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;create: function () {}&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2016 17:07:15 GMT</pubDate>
    <dc:creator>TomTyndall1</dc:creator>
    <dc:date>2016-12-16T17:07:15Z</dc:date>
    <item>
      <title>WAB Source Code of Layer List Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-source-code-of-layer-list-widget/m-p/209764#M5801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Web AppBuilder (Developer Edition), when I checked the source code of Layer List Widget (Widget.js) , I don't understand why there is always a comma at the end of each function such as below: This is not right in JavaScript grammar. Why? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;destroy: function()&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt; this._clearLayers();&lt;BR /&gt; this.inherited(arguments);&lt;BR /&gt; &lt;STRONG&gt;},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It should be : &amp;nbsp;var destroy = function () {...};&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 23:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-source-code-of-layer-list-widget/m-p/209764#M5801</guid>
      <dc:creator>LindaM</dc:creator>
      <dc:date>2016-11-28T23:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: WAB Source Code of Layer List Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-source-code-of-layer-list-widget/m-p/209765#M5802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Linda,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; Doing templated widget/dijit development in dojo is just different then the standard js development that you are use to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 01:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-source-code-of-layer-list-widget/m-p/209765#M5802</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-11-29T01:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: WAB Source Code of Layer List Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-source-code-of-layer-list-widget/m-p/209766#M5803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the issue is that the code you posted was embedded within a larger object. Notice how your code is: destroy&lt;STRONG&gt;:&lt;/STRONG&gt; function () .... not&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;destroy &lt;STRONG&gt;=&lt;/STRONG&gt; function() ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code is defining a destroy property in an object, not a variable named destroy, so in this case the comma is correct (it separates the declaration of the destroy property from the declaration of whatever was the next property in the object).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lifecycle = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;destroy: function () {},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;create: function () {}&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 17:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-source-code-of-layer-list-widget/m-p/209766#M5803</guid>
      <dc:creator>TomTyndall1</dc:creator>
      <dc:date>2016-12-16T17:07:15Z</dc:date>
    </item>
  </channel>
</rss>

