<?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 esri/views/SceneView module breaks Object.assign() in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-views-sceneview-module-breaks-object-assign/m-p/581925#M54320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is Object.assign() polyfill coming with esri/views/SceneView module (inside the esri/views/3d/canvas3d/webgl-engine/lib/es6-shim submodule).&lt;/P&gt;&lt;P&gt;This polyfill seems to be wrong.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign" rel="nofollow" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign&lt;/A&gt;&lt;SPAN&gt;, the Object.assign() should be able to process multiple sources, which the Object.assign() polyfill coming with esri/views/SceneView does not support.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Object.assign({}, {a:1}, {b:2}); // should return {a:1, b:2}, the polyfill returns {a:1}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try the example alive:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Open &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://developers.arcgis.com/javascript/beta/sample-code/source-code/3d/basic3d/index.html" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/beta/sample-code/source-code/3d/basic3d/index.html&lt;/A&gt;&lt;SPAN&gt; in Chrome (Chrome does not implement the Object.assign() yet, so the polyfill will be used)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Run Object.assign({}, {a:1}, {b:2}); in the console&lt;/P&gt;&lt;P&gt;3. The result is {a:1}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. Open &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://developers.arcgis.com/javascript/beta/sample-code/source-code/3d/basic3d/index.html" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/beta/sample-code/source-code/3d/basic3d/index.html&lt;/A&gt;&lt;SPAN&gt; in Firefox (Firefox already implements Object.assign() since v34)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5. Run Object.assign({}, {a:1}, {b:2}); in console&lt;/P&gt;&lt;P&gt;6. The result is {a:1, b:2}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally I do not think it is good idea to pollute global scope with polyfills coming with EsriJS library itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2015 11:39:42 GMT</pubDate>
    <dc:creator>MatejVrtich</dc:creator>
    <dc:date>2015-07-23T11:39:42Z</dc:date>
    <item>
      <title>esri/views/SceneView module breaks Object.assign()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-views-sceneview-module-breaks-object-assign/m-p/581925#M54320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is Object.assign() polyfill coming with esri/views/SceneView module (inside the esri/views/3d/canvas3d/webgl-engine/lib/es6-shim submodule).&lt;/P&gt;&lt;P&gt;This polyfill seems to be wrong.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign" rel="nofollow" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign&lt;/A&gt;&lt;SPAN&gt;, the Object.assign() should be able to process multiple sources, which the Object.assign() polyfill coming with esri/views/SceneView does not support.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Object.assign({}, {a:1}, {b:2}); // should return {a:1, b:2}, the polyfill returns {a:1}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try the example alive:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Open &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://developers.arcgis.com/javascript/beta/sample-code/source-code/3d/basic3d/index.html" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/beta/sample-code/source-code/3d/basic3d/index.html&lt;/A&gt;&lt;SPAN&gt; in Chrome (Chrome does not implement the Object.assign() yet, so the polyfill will be used)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Run Object.assign({}, {a:1}, {b:2}); in the console&lt;/P&gt;&lt;P&gt;3. The result is {a:1}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. Open &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://developers.arcgis.com/javascript/beta/sample-code/source-code/3d/basic3d/index.html" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/beta/sample-code/source-code/3d/basic3d/index.html&lt;/A&gt;&lt;SPAN&gt; in Firefox (Firefox already implements Object.assign() since v34)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5. Run Object.assign({}, {a:1}, {b:2}); in console&lt;/P&gt;&lt;P&gt;6. The result is {a:1, b:2}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally I do not think it is good idea to pollute global scope with polyfills coming with EsriJS library itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 11:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-views-sceneview-module-breaks-object-assign/m-p/581925#M54320</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2015-07-23T11:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: esri/views/SceneView module breaks Object.assign()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-views-sceneview-module-breaks-object-assign/m-p/581926#M54321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matej,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we will work on this for beta2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 19:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-views-sceneview-module-breaks-object-assign/m-p/581926#M54321</guid>
      <dc:creator>YannCabon</dc:creator>
      <dc:date>2015-07-24T19:02:44Z</dc:date>
    </item>
  </channel>
</rss>

