<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>hilojs Issue Tracker Rss Feed</title><link>https://hilojs.codeplex.com/workitem/list/basic</link><description>hilojs Issue Tracker Rss Description</description><item><title>Commented Unassigned: Exception is thrown when Pictures folder is empty [3]</title><link>http://hilojs.codeplex.com/workitem/3</link><description>If the __Pictures__ folder of the current user doesn&amp;#39;t contain any images when the sample is run, the following exception is thrown&amp;#58;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Exception is about to be caught by JavaScript library code at line 38, column 13 in ms-appx&amp;#58;&amp;#47;&amp;#47;microsoft.sdksamples.hilo.js&amp;#47;Hilo&amp;#47;Picture.js&lt;br /&gt;&lt;br /&gt;0x800a138f - JavaScript runtime error&amp;#58; Unable to get property &amp;#39;name&amp;#39; of undefined or null reference&lt;br /&gt;&lt;br /&gt;If there is a handler for this exception, the program may be safely continued.&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;This exception is being thrown inside the __PictureConstructor__ function &amp;#40;of the __Picture.js__ file&amp;#41; due to the __file__ argument being ___undefined___.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Damian Cherubini&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;blogs.southworks.net&amp;#47;dcherubini&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comments: Hi,&amp;#10;&amp;#10;I&amp;#39;ve found that the problem was related to the __processNextFile__ function in the ___createViewModels__ function from the __imageQueryBuilder.js__, which was trying to call the __Hilo.Picture__ function on an invalid index of the array from the Pictures folder. In order to workaround this issue you can change the code from the __processNextFile__ function for the following one&amp;#58;&amp;#10;                    &amp;#10;&amp;#96;&amp;#96;&amp;#96;JS&amp;#10;function processNextFile&amp;#40;&amp;#41; &amp;#123;&amp;#10;   if &amp;#40;index &amp;#60; 0&amp;#41; &amp;#123;&amp;#10;      complete&amp;#40;results&amp;#41;&amp;#59;&amp;#10;   &amp;#125; else if &amp;#40;&amp;#33;proceed&amp;#41; &amp;#123;&amp;#10;      error&amp;#40;&amp;#34;Cancel&amp;#34;&amp;#41;&amp;#59;&amp;#10;   &amp;#125; else &amp;#123;&amp;#10;      var file &amp;#61; files&amp;#91;index&amp;#93;&amp;#59;&amp;#10;      results&amp;#91;index&amp;#93; &amp;#61; new Hilo.Picture&amp;#40;file&amp;#41;&amp;#59;&amp;#10;      index--&amp;#59;&amp;#10;      setImmediate&amp;#40;processNextFile&amp;#41;&amp;#59;&amp;#10;   &amp;#125;&amp;#10;&amp;#125;&amp;#10;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#10;Regards,&amp;#10;&amp;#10;Federico Martinez &amp;#10;http&amp;#58;&amp;#47;&amp;#47;blogs.southworks.net&amp;#47;fmartinez</description><author>fmartinez</author><pubDate>Fri, 03 May 2013 17:25:33 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Exception is thrown when Pictures folder is empty [3] 20130503052533P</guid></item><item><title>Created Unassigned: Exception is thrown when Pictures folder is empty [3]</title><link>http://hilojs.codeplex.com/workitem/3</link><description>If the __Pictures__ folder of the current user doesn&amp;#39;t contain any images when the sample is run, the following exception is thrown&amp;#58;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Exception is about to be caught by JavaScript library code at line 38, column 13 in ms-appx&amp;#58;&amp;#47;&amp;#47;microsoft.sdksamples.hilo.js&amp;#47;Hilo&amp;#47;Picture.js&lt;br /&gt;&lt;br /&gt;0x800a138f - JavaScript runtime error&amp;#58; Unable to get property &amp;#39;name&amp;#39; of undefined or null reference&lt;br /&gt;&lt;br /&gt;If there is a handler for this exception, the program may be safely continued.&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;This exception is being thrown inside the __PictureConstructor__ function &amp;#40;of the __Picture.js__ file&amp;#41; due to the __file__ argument being ___undefined___.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Damian Cherubini&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;blogs.southworks.net&amp;#47;dcherubini&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description><author>DCherubini</author><pubDate>Thu, 25 Apr 2013 16:39:35 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Exception is thrown when Pictures folder is empty [3] 20130425043935P</guid></item><item><title>Commented Issue:  C:\Projects\Repositories\.bin\hilojs\Hilo\Hilo.jsproj : error  : Error HRESULT E_FAIL has been returned from a call to a COM component. [2]</title><link>http://hilojs.codeplex.com/workitem/2</link><description>I cannot open the .sln from Visual Studio as the Hilo project fails to load with&amp;#58;&lt;br /&gt;&lt;br /&gt;C&amp;#58;&amp;#92;Projects&amp;#92;Repositories&amp;#92;.bin&amp;#92;hilojs&amp;#92;Hilo&amp;#92;Hilo.jsproj &amp;#58; error  &amp;#58; Error HRESULT E_FAIL has been returned from a call to a COM component.&lt;br /&gt;&lt;br /&gt;Any thoughts,&lt;br /&gt;-Roberto&lt;br /&gt;Comments: I found out what the problem was, it seems the HgSccPackage &amp;#40;http&amp;#58;&amp;#47;&amp;#47;www.newsupaplex.pp.ru&amp;#47;hgscc_news_eng.html&amp;#41; doesn&amp;#39;t like the HiLo .jsproj.  I set my Visual Studio to not use any Source Control Provider, and now everything is peachy.&amp;#10;Regards,&amp;#10;-Roberto</description><author>rhp_74</author><pubDate>Thu, 14 Mar 2013 14:52:57 GMT</pubDate><guid isPermaLink="false">Commented Issue:  C:\Projects\Repositories\.bin\hilojs\Hilo\Hilo.jsproj : error  : Error HRESULT E_FAIL has been returned from a call to a COM component. [2] 20130314025257P</guid></item><item><title>Created Issue:  C:\Projects\Repositories\.bin\hilojs\Hilo\Hilo.jsproj : error  : Error HRESULT E_FAIL has been returned from a call to a COM component. [2]</title><link>http://hilojs.codeplex.com/workitem/2</link><description>I cannot open the .sln from Visual Studio as the Hilo project fails to load with&amp;#58;&lt;br /&gt;&lt;br /&gt;C&amp;#58;&amp;#92;Projects&amp;#92;Repositories&amp;#92;.bin&amp;#92;hilojs&amp;#92;Hilo&amp;#92;Hilo.jsproj &amp;#58; error  &amp;#58; Error HRESULT E_FAIL has been returned from a call to a COM component.&lt;br /&gt;&lt;br /&gt;Any thoughts,&lt;br /&gt;-Roberto&lt;br /&gt;</description><author>rhp_74</author><pubDate>Fri, 01 Mar 2013 15:20:16 GMT</pubDate><guid isPermaLink="false">Created Issue:  C:\Projects\Repositories\.bin\hilojs\Hilo\Hilo.jsproj : error  : Error HRESULT E_FAIL has been returned from a call to a COM component. [2] 20130301032016P</guid></item><item><title>Closed Issue: Code cleanup/review pass [1]</title><link>http://hilojs.codeplex.com/workitem/1</link><description>I did a quick code review pass and found a few things to tweak.&lt;br /&gt;&lt;br /&gt;1&amp;#41; Inconsistent use of &amp;#96;document.getElementById&amp;#40;&amp;#39;foo&amp;#39;&amp;#41;&amp;#96; vs. &amp;#96;document.querySelector&amp;#40;&amp;#39;&amp;#35;foo&amp;#39;&amp;#41;&amp;#96;.&lt;br /&gt;    Technically &amp;#96;document.getElementById&amp;#40;&amp;#39;foo&amp;#39;&amp;#41;&amp;#96; is faster, but if you&amp;#39;re repeatedly grabbing the same element you should store it in a variable or property then the cost isn&amp;#39;t important. See http&amp;#58;&amp;#47;&amp;#47;hilojs.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;view&amp;#47;ee9ae3abeb43&amp;#35;Hilo&amp;#37;2fHilo&amp;#37;2fdetail&amp;#37;2fdetail.js&lt;br /&gt;&lt;br /&gt;2&amp;#41; Avoid DOM0 event handler assignment like &amp;#96; document.body.onkeyup &amp;#61; ...&amp;#96; and instead use &amp;#96;addEventListener&amp;#96;&lt;br /&gt;   http&amp;#58;&amp;#47;&amp;#47;hilojs.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;view&amp;#47;ee9ae3abeb43&amp;#35;Hilo&amp;#37;2fHilo&amp;#37;2fPageControlNavigator.js&lt;br /&gt;&lt;br /&gt;3&amp;#41;  Move frequently assigned elements or DOM objects into a variable. So instead of &amp;#96;document.body.style.height &amp;#61; ...&amp;#96; then &amp;#96;document.body.style.width &amp;#61; ...&amp;#96; then &amp;#96;document.body.style.color &amp;#61; ...&amp;#96;, do &amp;#96;var bodyStyle &amp;#61; document.body.style&amp;#59;&amp;#96; and then the style modifications.&lt;br /&gt;Comments: Updates in http&amp;#58;&amp;#47;&amp;#47;hilojs.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;7b904fe39427&amp;#10;&amp;#10;I only found a few instances of &amp;#35;3. On whole, we&amp;#39;ve tried to avoid lengthy reference chains. If you come across more instance, please raise them.&amp;#10;&amp;#10;Thanks&amp;#33;</description><author>bennage</author><pubDate>Fri, 24 Aug 2012 23:59:25 GMT</pubDate><guid isPermaLink="false">Closed Issue: Code cleanup/review pass [1] 20120824115925P</guid></item><item><title>Commented Issue: Code cleanup/review pass [1]</title><link>http://hilojs.codeplex.com/workitem/1</link><description>I did a quick code review pass and found a few things to tweak.&lt;br /&gt;&lt;br /&gt;1&amp;#41; Inconsistent use of &amp;#96;document.getElementById&amp;#40;&amp;#39;foo&amp;#39;&amp;#41;&amp;#96; vs. &amp;#96;document.querySelector&amp;#40;&amp;#39;&amp;#35;foo&amp;#39;&amp;#41;&amp;#96;.&lt;br /&gt;    Technically &amp;#96;document.getElementById&amp;#40;&amp;#39;foo&amp;#39;&amp;#41;&amp;#96; is faster, but if you&amp;#39;re repeatedly grabbing the same element you should store it in a variable or property then the cost isn&amp;#39;t important. See http&amp;#58;&amp;#47;&amp;#47;hilojs.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;view&amp;#47;ee9ae3abeb43&amp;#35;Hilo&amp;#37;2fHilo&amp;#37;2fdetail&amp;#37;2fdetail.js&lt;br /&gt;&lt;br /&gt;2&amp;#41; Avoid DOM0 event handler assignment like &amp;#96; document.body.onkeyup &amp;#61; ...&amp;#96; and instead use &amp;#96;addEventListener&amp;#96;&lt;br /&gt;   http&amp;#58;&amp;#47;&amp;#47;hilojs.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;view&amp;#47;ee9ae3abeb43&amp;#35;Hilo&amp;#37;2fHilo&amp;#37;2fPageControlNavigator.js&lt;br /&gt;&lt;br /&gt;3&amp;#41;  Move frequently assigned elements or DOM objects into a variable. So instead of &amp;#96;document.body.style.height &amp;#61; ...&amp;#96; then &amp;#96;document.body.style.width &amp;#61; ...&amp;#96; then &amp;#96;document.body.style.color &amp;#61; ...&amp;#96;, do &amp;#96;var bodyStyle &amp;#61; document.body.style&amp;#59;&amp;#96; and then the style modifications.&lt;br /&gt;Comments: &amp;#64;Bennage on &amp;#35;3 I avoided mentioning perf because in most cases it&amp;#39;s a micro-optimization, I prefer it for readability. http&amp;#58;&amp;#47;&amp;#47;jsperf.com&amp;#47;document-body-vs&amp;#47;2&amp;#35;chart&amp;#61;bar</description><author>jdalton</author><pubDate>Fri, 24 Aug 2012 23:15:40 GMT</pubDate><guid isPermaLink="false">Commented Issue: Code cleanup/review pass [1] 20120824111540P</guid></item><item><title>Commented Issue: Code cleanup/review pass [1]</title><link>http://hilojs.codeplex.com/workitem/1</link><description>I did a quick code review pass and found a few things to tweak.&lt;br /&gt;&lt;br /&gt;1&amp;#41; Inconsistent use of &amp;#96;document.getElementById&amp;#40;&amp;#39;foo&amp;#39;&amp;#41;&amp;#96; vs. &amp;#96;document.querySelector&amp;#40;&amp;#39;&amp;#35;foo&amp;#39;&amp;#41;&amp;#96;.&lt;br /&gt;    Technically &amp;#96;document.getElementById&amp;#40;&amp;#39;foo&amp;#39;&amp;#41;&amp;#96; is faster, but if you&amp;#39;re repeatedly grabbing the same element you should store it in a variable or property then the cost isn&amp;#39;t important. See http&amp;#58;&amp;#47;&amp;#47;hilojs.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;view&amp;#47;ee9ae3abeb43&amp;#35;Hilo&amp;#37;2fHilo&amp;#37;2fdetail&amp;#37;2fdetail.js&lt;br /&gt;&lt;br /&gt;2&amp;#41; Avoid DOM0 event handler assignment like &amp;#96; document.body.onkeyup &amp;#61; ...&amp;#96; and instead use &amp;#96;addEventListener&amp;#96;&lt;br /&gt;   http&amp;#58;&amp;#47;&amp;#47;hilojs.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;view&amp;#47;ee9ae3abeb43&amp;#35;Hilo&amp;#37;2fHilo&amp;#37;2fPageControlNavigator.js&lt;br /&gt;&lt;br /&gt;3&amp;#41;  Move frequently assigned elements or DOM objects into a variable. So instead of &amp;#96;document.body.style.height &amp;#61; ...&amp;#96; then &amp;#96;document.body.style.width &amp;#61; ...&amp;#96; then &amp;#96;document.body.style.color &amp;#61; ...&amp;#96;, do &amp;#96;var bodyStyle &amp;#61; document.body.style&amp;#59;&amp;#96; and then the style modifications.&lt;br /&gt;Comments: What&amp;#39;s interesting about PageControlNavigator.js is that is out-of-the-box Visual Studio template. But yeah, I totally agree about &amp;#96;addEventListener&amp;#96;.&amp;#10;&amp;#10;For number 3, is your primary reason perf related&amp;#63; I&amp;#39;ve read that it doesn&amp;#39;t matter as much in modern browsers. Though in general I prefer approach you recommend for readability.</description><author>bennage</author><pubDate>Fri, 24 Aug 2012 23:00:12 GMT</pubDate><guid isPermaLink="false">Commented Issue: Code cleanup/review pass [1] 20120824110012P</guid></item><item><title>Created Issue: Code cleanup/review pass [1]</title><link>http://hilojs.codeplex.com/workitem/1</link><description>I did a quick code review pass and found a few things to tweak.&lt;br /&gt;&lt;br /&gt;1&amp;#41; Inconsistent use of &amp;#96;document.getElementById&amp;#40;&amp;#39;foo&amp;#39;&amp;#41;&amp;#96; vs. &amp;#96;document.querySelector&amp;#40;&amp;#39;&amp;#35;foo&amp;#39;&amp;#41;&amp;#96;.&lt;br /&gt;    Technically &amp;#96;document.getElementById&amp;#40;&amp;#39;foo&amp;#39;&amp;#41;&amp;#96; is faster, but if you&amp;#39;re repeatedly grabbing the same element you should store it in a variable or property then the cost isn&amp;#39;t important. See http&amp;#58;&amp;#47;&amp;#47;hilojs.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;view&amp;#47;ee9ae3abeb43&amp;#35;Hilo&amp;#37;2fHilo&amp;#37;2fdetail&amp;#37;2fdetail.js&lt;br /&gt;&lt;br /&gt;2&amp;#41; Avoid DOM0 event handler assignment like &amp;#96; document.body.onkeyup &amp;#61; ...&amp;#96; and instead use &amp;#96;addEventListener&amp;#96;&lt;br /&gt;   http&amp;#58;&amp;#47;&amp;#47;hilojs.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;view&amp;#47;ee9ae3abeb43&amp;#35;Hilo&amp;#37;2fHilo&amp;#37;2fPageControlNavigator.js&lt;br /&gt;&lt;br /&gt;3&amp;#41;  Move frequently assigned elements or DOM objects into a variable. So instead of &amp;#96;document.body.style.height &amp;#61; ...&amp;#96; then &amp;#96;document.body.style.width &amp;#61; ...&amp;#96; then &amp;#96;document.body.style.color &amp;#61; ...&amp;#96;, do &amp;#96;var bodyStyle &amp;#61; document.body.style&amp;#59;&amp;#96; and then the style modifications.&lt;br /&gt;</description><author>jdalton</author><pubDate>Fri, 24 Aug 2012 22:45:43 GMT</pubDate><guid isPermaLink="false">Created Issue: Code cleanup/review pass [1] 20120824104543P</guid></item></channel></rss>