<?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: jQuery plugins conflicting with dojo in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-plugins-conflicting-with-dojo/m-p/190068#M17565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I *think* hammer.js uses the RequireJS module loader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://requirejs.org/docs/dojo.html"&gt;http://requirejs.org/docs/dojo.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;As of Dojo 1.8, Dojo has converted their modules to AMD modules. However, Dojo uses some loader plugins, and the loader plugin APIs are still in draft mode for AMD. So while some modules from Dojo can be used with RequireJS, it will be difficult to use all of Dojo. It is best to use Dojo's AMD loader until &lt;A href="https://bugs.dojotoolkit.org/ticket/15616"&gt;ticket 15616&lt;/A&gt; has been resolved.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked out &lt;/SPAN&gt;&lt;A href="https://bugs.dojotoolkit.org/ticket/15616"&gt;ticket 15616&lt;/A&gt;&lt;SPAN&gt; from the above quote and it seems there are some potential fixes or suggestions in the comments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this helps. I know it is doable with a little more searching. Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 19:18:08 GMT</pubDate>
    <dc:creator>JonathanUihlein</dc:creator>
    <dc:date>2013-09-25T19:18:08Z</dc:date>
    <item>
      <title>jQuery plugins conflicting with dojo</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-plugins-conflicting-with-dojo/m-p/190067#M17564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm currently implementing ArcGIS maps within a website that uses jQuery quite a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now some plugins like hammer.js call dojo's define function because of their UMD wrappers. This cause multipleDefine errors in my console. Is there a way to circumvent this? Do I have to set all these plugins as package in the dojoConfig object?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here the code in hammer.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(typeof define == 'function' &amp;amp;&amp;amp; typeof define.amd == 'object' &amp;amp;&amp;amp; define.amd) {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // define as an anonymous module
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define(['jquery'], function($) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extendJquery(Hammer, $);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });

&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extendJquery(window.Hammer, window.jQuery || window.Zepto);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 11:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-plugins-conflicting-with-dojo/m-p/190067#M17564</guid>
      <dc:creator>JulienSilva</dc:creator>
      <dc:date>2013-09-24T11:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: jQuery plugins conflicting with dojo</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-plugins-conflicting-with-dojo/m-p/190068#M17565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I *think* hammer.js uses the RequireJS module loader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://requirejs.org/docs/dojo.html"&gt;http://requirejs.org/docs/dojo.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;As of Dojo 1.8, Dojo has converted their modules to AMD modules. However, Dojo uses some loader plugins, and the loader plugin APIs are still in draft mode for AMD. So while some modules from Dojo can be used with RequireJS, it will be difficult to use all of Dojo. It is best to use Dojo's AMD loader until &lt;A href="https://bugs.dojotoolkit.org/ticket/15616"&gt;ticket 15616&lt;/A&gt; has been resolved.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked out &lt;/SPAN&gt;&lt;A href="https://bugs.dojotoolkit.org/ticket/15616"&gt;ticket 15616&lt;/A&gt;&lt;SPAN&gt; from the above quote and it seems there are some potential fixes or suggestions in the comments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this helps. I know it is doable with a little more searching. Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 19:18:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-plugins-conflicting-with-dojo/m-p/190068#M17565</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2013-09-25T19:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: jQuery plugins conflicting with dojo</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-plugins-conflicting-with-dojo/m-p/190069#M17566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for my late reply. Thanks for your help. I will check out the ticket you've mentioned. I will post my solution here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 06:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-plugins-conflicting-with-dojo/m-p/190069#M17566</guid>
      <dc:creator>JulienSilva</dc:creator>
      <dc:date>2013-09-30T06:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: jQuery plugins conflicting with dojo</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-plugins-conflicting-with-dojo/m-p/190070#M17567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using jQuery with Dojo, be sure to add this line before your first require statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;define.amd.jQuery = true;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/a/12153995/241635"&gt;http://stackoverflow.com/a/12153995/241635&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.ibm.com/developerworks/mydeveloperworks/blogs/94e7fded-7162-445e-8ceb-97a2140866a9/entry/loading_jquery_with_dojo_1_7_amd_loader2?lang=en"&gt;https://www.ibm.com/developerworks/mydeveloperworks/blogs/94e7fded-7162-445e-8ceb-97a2140866a9/entry/loading_jquery_with_dojo_1_7_amd_loader2?lang=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The why&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/amdjs/amdjs-api/wiki/jQuery-and-AMD"&gt;https://github.com/amdjs/amdjs-api/wiki/jQuery-and-AMD&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 13:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-plugins-conflicting-with-dojo/m-p/190070#M17567</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2013-09-30T13:14:51Z</dc:date>
    </item>
  </channel>
</rss>

