<?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 Access to the widget instance using 'this' in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278494#M25671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to configure a personalized widget for ArcGis Javascript Api 4.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is related to the use of &lt;STRONG&gt;&lt;EM&gt;'this'&lt;/EM&gt;&lt;/STRONG&gt; (a MapView) inside of method &lt;EM&gt;&lt;STRONG&gt;on()&lt;/STRONG&gt;&lt;/EM&gt; of&amp;nbsp;&lt;STRONG style="background-color: #ffffff; color: #c41a16;"&gt;&lt;EM&gt;esri/views/View&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used &lt;STRONG&gt;&lt;EM&gt;this.view.on&lt;/EM&gt;&lt;/STRONG&gt; inside a private method of my widget named &lt;EM&gt;&lt;STRONG&gt;onViewChange()&lt;/STRONG&gt;&lt;/EM&gt;. I attached all the TypeScript code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; @&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;property&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; @&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;renderable&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;private&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;_onViewChange&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;() {&lt;/SPAN&gt;&lt;/DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;on&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'pointer-up'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;response&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroanteriorgeoX&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;longitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp; &amp;nbsp;\\Here 'this' is undefined&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroanteriorgeo&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;x:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;longitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;y:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;latitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroanteriorpla&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; {&amp;nbsp; \\Here this works fine!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;x:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;xanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;y:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;yanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I have access to &lt;STRONG&gt;&lt;EM&gt;'this'&lt;/EM&gt;&lt;/STRONG&gt; inside the private &lt;STRONG&gt;&lt;EM&gt;onViewChange&lt;/EM&gt;&lt;/STRONG&gt; method but&amp;nbsp;outside &lt;STRONG&gt;&lt;EM&gt;this.view.on&lt;/EM&gt;&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="384767" alt="access to this is ok" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384767_this2.png" style="width: 620px; height: 347px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 22px;"&gt;I can't use 'this' inside of &lt;STRONG&gt;&lt;EM&gt;this.view.on&lt;/EM&gt;&lt;/STRONG&gt; because it is undefined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 22px;"&gt;How can I use and change properties&lt;/SPAN&gt; of 'this' (MapView) inside Mapview.on, inside a private method, inside a new widget class that extends Accessor?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="384760" alt="this is undefined" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384760_this1.png" style="width: 620px; height: 439px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tryed to do the same inside &lt;STRONG&gt;&lt;EM&gt;this.view.watch&lt;/EM&gt;&lt;/STRONG&gt;, but I have the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Alexys&amp;nbsp;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 22:09:57 GMT</pubDate>
    <dc:creator>Alexys_HerleymRodriguez_Avell1</dc:creator>
    <dc:date>2017-11-22T22:09:57Z</dc:date>
    <item>
      <title>Access to the widget instance using 'this'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278494#M25671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to configure a personalized widget for ArcGis Javascript Api 4.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is related to the use of &lt;STRONG&gt;&lt;EM&gt;'this'&lt;/EM&gt;&lt;/STRONG&gt; (a MapView) inside of method &lt;EM&gt;&lt;STRONG&gt;on()&lt;/STRONG&gt;&lt;/EM&gt; of&amp;nbsp;&lt;STRONG style="background-color: #ffffff; color: #c41a16;"&gt;&lt;EM&gt;esri/views/View&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used &lt;STRONG&gt;&lt;EM&gt;this.view.on&lt;/EM&gt;&lt;/STRONG&gt; inside a private method of my widget named &lt;EM&gt;&lt;STRONG&gt;onViewChange()&lt;/STRONG&gt;&lt;/EM&gt;. I attached all the TypeScript code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; @&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;property&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; @&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;renderable&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;private&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;_onViewChange&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;() {&lt;/SPAN&gt;&lt;/DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;on&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'pointer-up'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;response&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroanteriorgeoX&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;longitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp; &amp;nbsp;\\Here 'this' is undefined&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroanteriorgeo&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;x:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;longitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;y:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;latitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroanteriorpla&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; {&amp;nbsp; \\Here this works fine!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;x:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;xanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;y:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;yanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt; };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I have access to &lt;STRONG&gt;&lt;EM&gt;'this'&lt;/EM&gt;&lt;/STRONG&gt; inside the private &lt;STRONG&gt;&lt;EM&gt;onViewChange&lt;/EM&gt;&lt;/STRONG&gt; method but&amp;nbsp;outside &lt;STRONG&gt;&lt;EM&gt;this.view.on&lt;/EM&gt;&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="384767" alt="access to this is ok" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384767_this2.png" style="width: 620px; height: 347px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 22px;"&gt;I can't use 'this' inside of &lt;STRONG&gt;&lt;EM&gt;this.view.on&lt;/EM&gt;&lt;/STRONG&gt; because it is undefined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 22px;"&gt;How can I use and change properties&lt;/SPAN&gt; of 'this' (MapView) inside Mapview.on, inside a private method, inside a new widget class that extends Accessor?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="384760" alt="this is undefined" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384760_this1.png" style="width: 620px; height: 439px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tryed to do the same inside &lt;STRONG&gt;&lt;EM&gt;this.view.watch&lt;/EM&gt;&lt;/STRONG&gt;, but I have the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Alexys&amp;nbsp;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 22:09:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278494#M25671</guid>
      <dc:creator>Alexys_HerleymRodriguez_Avell1</dc:creator>
      <dc:date>2017-11-22T22:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Access to the widget instance using 'this'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278495#M25672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;Add the dojo/_base/lang library in your require array and then use lang.hitch(this, _onViewChange); to maintain the scope of this keyword.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 22:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278495#M25672</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-22T22:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Access to the widget instance using 'this'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278496#M25673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers Robert for your very fast answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have this module problem.&lt;/P&gt;&lt;P&gt;Visual Studio Code said "Cannot find module 'dojo/_base/lang'&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;lang&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"dojo/_base/lang"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configured my widget folder with:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;npm init --yes&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;npm install --save @types/arcgis-js-api&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;npm install dojo-typings --save-dev&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Create tsconfig.json&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside onViewchange() I wrotte:&amp;nbsp;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;lang&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;hitch&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;_onViewChange&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Do I need to put it inside the constructor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 22:47:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278496#M25673</guid>
      <dc:creator>Alexys_HerleymRodriguez_Avell1</dc:creator>
      <dc:date>2017-11-22T22:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access to the widget instance using 'this'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278497#M25674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Sorry I am not a npm node guy so I can’t help with that but it will take care of your scope issue when you get it installed correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 22:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278497#M25674</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-22T22:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Access to the widget instance using 'this'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278498#M25675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are already using TypeScript, you want to use fat arrow functions, which will inherit the scope of the block that it's in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; border: 0px; font-size: 14px; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit; font-size: 14px;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;on&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178; border: 0px; font-weight: inherit; font-size: 14px;"&gt;'pointer-up'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;response&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;) =&amp;gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #d4d4d4; border: 0px; font-size: 14px; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit; font-size: 14px;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;centroanteriorgeoX&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit; font-size: 14px;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;longitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&amp;nbsp; &amp;nbsp;\\should work now&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #d4d4d4; border: 0px; font-size: 14px; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit; font-size: 14px;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;centroanteriorgeo&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #d4d4d4; border: 0px; font-size: 14px; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;x:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit; font-size: 14px;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;longitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #d4d4d4; border: 0px; font-size: 14px; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;y:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit; font-size: 14px;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;latitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #d4d4d4; border: 0px; font-size: 14px; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #d4d4d4; border: 0px; font-size: 14px; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read more about it here.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developer.ibm.com/node/2015/09/21/an-introduction-to-javascript-es6-arrow-functions/" title="https://developer.ibm.com/node/2015/09/21/an-introduction-to-javascript-es6-arrow-functions/"&gt;An Introduction to JavaScript ES6 Arrow Functions - Node.js @ IBM&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 16:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278498#M25675</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2017-11-26T16:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Access to the widget instance using 'this'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278499#M25676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rene, According to your advice (&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdeveloper.ibm.com%2Fnode%2F2015%2F09%2F21%2Fan-introduction-to-javascript-es6-arrow-functions%2F"&gt;An Introduction to JavaScript ES6 Arrow Functions - Node.js @ IBM&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;I wrote&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;just before&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;on&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'pointer-up'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;response&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroanteriorgeo&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;longitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroanteriorgeo&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;longitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;y:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;latitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;And now &lt;SPAN style="color: #ff0000; font-size: 22px;"&gt;I have access to 'this' &lt;/SPAN&gt;inside this.view.on, inside _onViewChange. &lt;SPAN style="color: #ff0000; font-size: 22px;"&gt;It is the solution!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not work with &lt;STRONG&gt;&lt;EM&gt;var self = this&lt;/EM&gt;&lt;/STRONG&gt;;, because inside 'self' there is another object!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use fat arrow, but I don't know how to code it. Could you please tell me how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 04:13:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278499#M25676</guid>
      <dc:creator>Alexys_HerleymRodriguez_Avell1</dc:creator>
      <dc:date>2017-11-29T04:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Access to the widget instance using 'this'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278500#M25677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just review this [&lt;A href="https://developers.arcgis.com/javascript/latest/guide/typescript-setup/index.html"&gt;TypeScript - Setting up your development environment for Javascript Api 4.5&lt;/A&gt;]&amp;nbsp;and [&lt;A href="https://github.com/dojo/typings/wiki/How-To-Use"&gt;how to guide on how to develop with Dojo 1 in TypeScript using dojo/typings&lt;/A&gt;]&amp;nbsp;and I realized that I just needed to change my tsconfig.json to:&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; "compilerOptions"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "module"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"amd"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "noImplicitAny"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "sourceMap"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "jsx"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"react"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "jsxFactory"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"tsx"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "target"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"es5"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "experimentalDecorators"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "preserveConstEnums"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "suppressImplicitAnyIndexErrors"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; "include"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "./app/*"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; ],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;nbsp; &amp;nbsp; "exclude"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "node_modules"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; ]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Thank you very much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 04:20:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278500#M25677</guid>
      <dc:creator>Alexys_HerleymRodriguez_Avell1</dc:creator>
      <dc:date>2017-11-29T04:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Access to the widget instance using 'this'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278501#M25678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Inside _onViewhange and before &lt;STRONG&gt;&lt;EM&gt;this.view.on('pointer-up', ...})&lt;/EM&gt;&lt;/STRONG&gt;; I wrote&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #608b4e;"&gt;lang.hitch(this, this._onViewChange);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I also used the same sentence inside the constructor.&lt;/P&gt;&lt;P&gt;But I don't have access to 'this' inside this.view.on.&lt;/P&gt;&lt;P&gt;__________________________&lt;/P&gt;&lt;P&gt;I fixed it using &lt;STRONG&gt;&lt;EM&gt;var that = this&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I wrote&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; border: 0px; font-weight: normal; font-size: 14px;"&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit; font-size: 14px;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit; font-size: 14px;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;just before&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; border: 0px; font-weight: normal; font-size: 14px;"&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit; font-size: 14px;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;on&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178; border: 0px; font-weight: inherit; font-size: 14px;"&gt;'pointer-up'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6; border: 0px; font-weight: inherit; font-size: 14px;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;response&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;centroanteriorgeo&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;longitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;centroanteriorgeo&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;longitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;y:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;that&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;state&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; border: 0px; font-weight: inherit; font-size: 14px;"&gt;latitudanterior&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="color: #d4d4d4; border: 0px; font-weight: inherit; font-size: 14px;"&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;And now&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff; border: 0px; font-size: 22px;"&gt;I have access to 'this'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;inside this.view.on, inside _onViewChange&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 04:28:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-to-the-widget-instance-using-this/m-p/278501#M25678</guid>
      <dc:creator>Alexys_HerleymRodriguez_Avell1</dc:creator>
      <dc:date>2017-11-29T04:28:28Z</dc:date>
    </item>
  </channel>
</rss>

