<?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: Do the items in the require([...] have to be in specific order, or do some conflict with each other? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520531#M48509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this informative &lt;A href="http://blogs.esri.com/esri/arcgis/2013/10/14/the-abcs-of-amd/"&gt;blog post&lt;/A&gt; on the basics of AMD programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;The most important thing to remember is that the arguments are positional, which means that you have to be careful to ensure that your argument names are listed in the same order that you loaded your modules.&amp;nbsp; If this isn’t done your variables won’t refer to the module you expect them to.&lt;/P&gt;&lt;P&gt;You will also see that sometimes AMD samples load modules that weren’t loaded using &lt;EM&gt;dojo.require()&lt;/EM&gt; before.&amp;nbsp; Some examples are: “&lt;EM&gt;esri/config”, “dojo/_base/Color”, &lt;/EM&gt;and “&lt;EM&gt;dojo/dom”.&lt;/EM&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 15:02:52 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2015-02-18T15:02:52Z</dc:date>
    <item>
      <title>Do the items in the require([...] have to be in specific order, or do some conflict with each other?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520528#M48506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to the Javascript API.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of my question is if you add "esri/Symbols/SimpleLineSymbol" to the list on this sample: &lt;A _jive_internal="true" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Fsandbox%2Fsandbox.html%3Fsample%3Dlocator_address" rel="nofollow" target="_blank"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will lose functionality. Why is that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 23:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520528#M48506</guid>
      <dc:creator>MitchellOttesen</dc:creator>
      <dc:date>2015-02-04T23:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Do the items in the require([...] have to be in specific order, or do some conflict with each other?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520529#M48507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The items do not have to be in any order. However, the order needs to be reflected in the names of the function parameters:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="58760" alt="requires.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/58760_requires.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The case of the required module path matters&lt;/STRONG&gt;. In your example try changing &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;"esri/Symbols/SimpleLineSymbol"&amp;nbsp; to &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;"esri/symbols/SimpleLineSymbol" &lt;/SPAN&gt;&lt;/SPAN&gt; (note the lowercase s in /symbols/).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 02:12:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520529#M48507</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2015-02-05T02:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Do the items in the require([...] have to be in specific order, or do some conflict with each other?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520530#M48508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Owen, but you should put your require statements that do not have parameters last as this will put your required elements and your parameters out of order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 17:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520530#M48508</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2015-02-17T17:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Do the items in the require([...] have to be in specific order, or do some conflict with each other?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520531#M48509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this informative &lt;A href="http://blogs.esri.com/esri/arcgis/2013/10/14/the-abcs-of-amd/"&gt;blog post&lt;/A&gt; on the basics of AMD programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;The most important thing to remember is that the arguments are positional, which means that you have to be careful to ensure that your argument names are listed in the same order that you loaded your modules.&amp;nbsp; If this isn’t done your variables won’t refer to the module you expect them to.&lt;/P&gt;&lt;P&gt;You will also see that sometimes AMD samples load modules that weren’t loaded using &lt;EM&gt;dojo.require()&lt;/EM&gt; before.&amp;nbsp; Some examples are: “&lt;EM&gt;esri/config”, “dojo/_base/Color”, &lt;/EM&gt;and “&lt;EM&gt;dojo/dom”.&lt;/EM&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 15:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520531#M48509</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-02-18T15:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Do the items in the require([...] have to be in specific order, or do some conflict with each other?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520532#M48510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mitchell,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the new tool I have created: &lt;A href="http://timw1984.github.io/getmap/" title="http://timw1984.github.io/getmap/"&gt;Get your map!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you got your extent and basemap click on "Go to require", which will take you to a require builder, which was first created by &lt;A href="https://github.com/swingley/arg" style="font-family: sans-serif; font-size: medium;"&gt;Derek Swingley&lt;/A&gt;&amp;nbsp; . I did some debugging on his code and included it in my tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 13:52:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-the-items-in-the-require-have-to-be-in-specific/m-p/520532#M48510</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2016-03-02T13:52:55Z</dc:date>
    </item>
  </channel>
</rss>

