<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - dojo.{declare,extend} support for Komodo - Comments</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo</link>
 <description>Comments for &quot;dojo.{declare,extend} support for Komodo&quot;</description>
 <language>en</language>
<item>
 <title>a patch to fix 75068</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-5192</link>
 <description>&lt;p&gt;just uploaded a new patch which covers all the issues in the bug 75068, please review it&lt;/p&gt;
</description>
 <pubDate>Fri, 25 Apr 2008 01:12:02 -0700</pubDate>
 <dc:creator>liucougar</dc:creator>
 <guid isPermaLink="false">comment 5192 at http://community.activestate.com</guid>
</item>
<item>
 <title>Re: function arguments bug</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4957</link>
 <description>&lt;p&gt;Bug reference:&lt;br /&gt;
&lt;a href=&quot;http://bugs.activestate.com/show_bug.cgi?id=75068&quot; title=&quot;http://bugs.activestate.com/show_bug.cgi?id=75068&quot;&gt;http://bugs.activestate.com/show_bug.cgi?id=75068&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Yes, we want to get the JS argument problems fixed up. This patch will not make it into the 4.3.2 release though, it is still marked as a todo item. It will likely end up in the Komodo 4.4 release.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Todd&lt;/p&gt;
</description>
 <pubDate>Mon, 07 Apr 2008 14:10:39 -0700</pubDate>
 <dc:creator>ToddW</dc:creator>
 <guid isPermaLink="false">comment 4957 at http://community.activestate.com</guid>
</item>
<item>
 <title>cool</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4925</link>
 <description>&lt;p&gt;What about the other bug please?&lt;/p&gt;
&lt;p&gt;while it may seem trivial, it is quite misleading while using komodo with dojo&lt;/p&gt;
</description>
 <pubDate>Fri, 04 Apr 2008 13:44:27 -0700</pubDate>
 <dc:creator>liucougar</dc:creator>
 <guid isPermaLink="false">comment 4925 at http://community.activestate.com</guid>
</item>
<item>
 <title>committed</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4924</link>
 <description>&lt;p&gt;Todd committed the patch, and it will appear in 4.3.2:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://svn.openkomodo.com/openkomodo/revision?rev=1236&quot; title=&quot;http://svn.openkomodo.com/openkomodo/revision?rev=1236&quot;&gt;http://svn.openkomodo.com/openkomodo/revision?rev=1236&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
</description>
 <pubDate>Fri, 04 Apr 2008 13:31:47 -0700</pubDate>
 <dc:creator>bcorfman</dc:creator>
 <guid isPermaLink="false">comment 4924 at http://community.activestate.com</guid>
</item>
<item>
 <title>Re: ah, excellent</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4901</link>
 <description>&lt;p&gt;After updating the testcase to use the &quot;constructor&quot; method, the tests all pass, nice work! I like it when things just work :D&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Todd&lt;/p&gt;
</description>
 <pubDate>Wed, 02 Apr 2008 11:26:03 -0700</pubDate>
 <dc:creator>ToddW</dc:creator>
 <guid isPermaLink="false">comment 4901 at http://community.activestate.com</guid>
</item>
<item>
 <title>new dojo doc location</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4896</link>
 <description>&lt;p&gt;please see the up-to-date doc for dojo here: (rather than the old jot wiki)&lt;br /&gt;
&lt;a href=&quot;http://redesign.dojotoolkit.org/jsdoc/dojo/HEAD/dojo.declare&quot; title=&quot;http://redesign.dojotoolkit.org/jsdoc/dojo/HEAD/dojo.declare&quot;&gt;http://redesign.dojotoolkit.org/jsdoc/dojo/HEAD/dojo.declare&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Wed, 02 Apr 2008 02:58:22 -0700</pubDate>
 <dc:creator>liucougar</dc:creator>
 <guid isPermaLink="false">comment 4896 at http://community.activestate.com</guid>
</item>
<item>
 <title>constructor instead of initializer</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4894</link>
 <description>&lt;p&gt;in dojo trunk (0.9+), initializer is deprecated and constructor should be used.&lt;/p&gt;
&lt;p&gt;the patch I attached handles that as followings: if it finds a constructor function for a dojo.declare-d class, it remove it from function and change the function name to the class name, finally add the function back to the class. (search for comment &quot;#change function constructor name...&quot; in the patch)&lt;/p&gt;
&lt;p&gt;that&#039;s the only way I can find for codeintel to use the constructor function as the &quot;initializer&quot; constructor method. I don&#039;t know whether there is a better way to achieve this&lt;/p&gt;
</description>
 <pubDate>Wed, 02 Apr 2008 02:55:38 -0700</pubDate>
 <dc:creator>liucougar</dc:creator>
 <guid isPermaLink="false">comment 4894 at http://community.activestate.com</guid>
</item>
<item>
 <title>Heh, nope, thanks for the reminder</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4890</link>
 <description>&lt;p&gt;I&#039;ve got to stop myself committing to things :D&lt;/p&gt;
&lt;p&gt;I&#039;ve added the test cases for dojo.declare and dojo.extend. It works rather well, though dojo.declare is failing on the following test though:&lt;/p&gt;
&lt;div class=&quot;geshi-block&quot;&gt;
&lt;div class=&quot;geshifilter javascript&quot; style=&quot;font-family: monospace;&quot;&gt;dojo.&lt;span style=&quot;color: #006600;&quot;&gt;declare&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;Person_bug75069&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;null&lt;/span&gt;, &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; initializer: &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066;&quot;&gt;name&lt;/span&gt;, age, currentResidence&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #000066;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #000066;&quot;&gt;name&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; matt_bug75069 = &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;new&lt;/span&gt; Person_bug75069&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;&amp;gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&#039;Matt&#039;&lt;/span&gt;, &lt;span style=&quot;color: #CC0000;&quot;&gt;25&lt;/span&gt;, &lt;span style=&quot;color: #3366CC;&quot;&gt;&#039;New Mexico&#039;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/div&gt;
&lt;pre class=&quot;geshi-plain&quot;&gt;dojo.declare(&amp;quot;Person_bug75069&amp;quot;, null, {
        initializer: function(name, age, currentResidence) {
            this.name=name;
        }
});
var matt_bug75069 = new Person_bug75069(&amp;lt;1&amp;gt;&#039;Matt&#039;, 25, &#039;New Mexico&#039;);&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;When the cursor position is at &quot;&amp;lt;1&amp;gt;&quot; the calltip is expected to be:&lt;br /&gt;
&quot;Person_bug75069(name, age, currentResidence)&quot;&lt;/p&gt;
&lt;p&gt;I&#039;m guessing it&#039;s because the &quot;initializer&quot; constructor method is not getting correctly renamed to match the class name, and you&#039;ll also need to add the &quot;__ctor__&quot; value to the attributes for this function.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Todd&lt;/p&gt;
</description>
 <pubDate>Tue, 01 Apr 2008 18:32:11 -0700</pubDate>
 <dc:creator>ToddW</dc:creator>
 <guid isPermaLink="false">comment 4890 at http://community.activestate.com</guid>
</item>
<item>
 <title>4.3.1?</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4886</link>
 <description>&lt;p&gt;seems this is not fixed in 4.3.1 either...&lt;/p&gt;
</description>
 <pubDate>Tue, 01 Apr 2008 10:37:19 -0700</pubDate>
 <dc:creator>liucougar</dc:creator>
 <guid isPermaLink="false">comment 4886 at http://community.activestate.com</guid>
</item>
<item>
 <title>Re: dojo.extend</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4465</link>
 <description>&lt;p&gt;That is correct, these two issues have not yet been fixed. I am sorry, but with the 4.3.0 release rush we did not get the time to review the patches :(&lt;/p&gt;
&lt;p&gt;I&#039;ll definitely be reviewing them now that 4.3.0 is out and this should get slotted for the 4.3.1 update.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Todd&lt;/p&gt;
</description>
 <pubDate>Fri, 07 Mar 2008 10:44:00 -0800</pubDate>
 <dc:creator>ToddW</dc:creator>
 <guid isPermaLink="false">comment 4465 at http://community.activestate.com</guid>
</item>
<item>
 <title>any updates on these two issues?</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4461</link>
 <description>&lt;p&gt;komodo 4.3 is released, but it seems these 2 issues are not fixed in this release, right?&lt;/p&gt;
</description>
 <pubDate>Fri, 07 Mar 2008 07:59:18 -0800</pubDate>
 <dc:creator>liucougar</dc:creator>
 <guid isPermaLink="false">comment 4461 at http://community.activestate.com</guid>
</item>
<item>
 <title>bug reports submitted</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4283</link>
 <description>&lt;p&gt;submitted a cleaner patch as &lt;a href=&quot;http://bugs.activestate.com/show_bug.cgi?id=75069&quot; title=&quot;http://bugs.activestate.com/show_bug.cgi?id=75069&quot;&gt;http://bugs.activestate.com/show_bug.cgi?id=75069&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;another bug I found is reported here: &lt;a href=&quot;http://bugs.activestate.com/show_bug.cgi?id=75068&quot; title=&quot;http://bugs.activestate.com/show_bug.cgi?id=75068&quot;&gt;http://bugs.activestate.com/show_bug.cgi?id=75068&lt;/a&gt; (also with a patch)&lt;/p&gt;
</description>
 <pubDate>Fri, 22 Feb 2008 07:40:41 -0800</pubDate>
 <dc:creator>liucougar</dc:creator>
 <guid isPermaLink="false">comment 4283 at http://community.activestate.com</guid>
</item>
<item>
 <title>Re: line number</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4276</link>
 <description>&lt;p&gt;The line number is a problem I&#039;ve also noticed, but has not been a high priority to fix. It is rather an architectural problem, lang_javascript.py only stores one variable for the current line, whereas the styles/text data is an array of the last x positions, and since could actually come from multiple lines, the line number likely should also be stored the same way...&lt;/p&gt;
&lt;p&gt;Oh yeah, I forgot to mention, if you&#039;d like to see your patch make it into the main OpenKomodo tree, the best way is to submit a bug and patch here:&lt;br /&gt;
&lt;a href=&quot;http://bugs.activestate.com/enter_bug.cgi?product=openkomodo&quot; title=&quot;http://bugs.activestate.com/enter_bug.cgi?product=openkomodo&quot;&gt;http://bugs.activestate.com/enter_bug.cgi?product=openkomodo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That way we can review to make sure the patch is suitable and then apply it (obviously it would need some tweaks, such as working with the existing YAHOO handling :).&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Todd&lt;/p&gt;
</description>
 <pubDate>Thu, 21 Feb 2008 15:59:46 -0800</pubDate>
 <dc:creator>ToddW</dc:creator>
 <guid isPermaLink="false">comment 4276 at http://community.activestate.com</guid>
</item>
<item>
 <title>YAHOO is useless for me</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4271</link>
 <description>&lt;p&gt;I don&#039;t use YAHOO, that&#039;s why I removed it from the file :)&lt;/p&gt;
</description>
 <pubDate>Thu, 21 Feb 2008 11:39:46 -0800</pubDate>
 <dc:creator>liucougar</dc:creator>
 <guid isPermaLink="false">comment 4271 at http://community.activestate.com</guid>
</item>
<item>
 <title>handleFunctionWithArguments should be helpful</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comment-4270</link>
 <description>&lt;p&gt;handleFunctionWithArguments sounds good to me too&lt;/p&gt;
&lt;p&gt;the problem I faced is to detect the line number for the dojo.declare/dojo.extend. I can&#039;t seem to figure it out, so in the patch I just use the the starting line number of the last argument (which is an object) to the function, which is not always correct. The following example will work correctly, as the starting line number of the {} is the same as the dojo.declare line&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;dojo.declare(&quot;A&quot;,null,{
});&lt;/pre&gt;&lt;p&gt;while it is off by one line in the following sample:&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;dojo.declare(&quot;A&quot;,null,
{
});&lt;/pre&gt;&lt;p&gt;
not such a big deal, but I&#039;d like to know whether it is possible to obtain the line number of dojo.declare in the handleFunctionWithArguments function&lt;/p&gt;
</description>
 <pubDate>Thu, 21 Feb 2008 11:38:41 -0800</pubDate>
 <dc:creator>liucougar</dc:creator>
 <guid isPermaLink="false">comment 4270 at http://community.activestate.com</guid>
</item>
<item>
 <title>dojo.{declare,extend} support for Komodo</title>
 <link>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo</link>
 <description>&lt;p&gt;I hacked lang_javascript.py file to add dojo.declare and dojo.extend support to komodo.&lt;/p&gt;
&lt;p&gt;See more details: &lt;a href=&quot;http://www.liucougar.net/blog/archives/85&quot; title=&quot;http://www.liucougar.net/blog/archives/85&quot;&gt;http://www.liucougar.net/blog/archives/85&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;anyone knows whether it is possible to add these kinds of feature in a macro/extension of komodo?&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/dojo-declare-extend-support-komodo#comments</comments>
 <category domain="http://community.activestate.com/forums/komodo-extensions-0">Komodo Macros and Extensions</category>
 <category domain="http://community.activestate.com/os/all-any">All / Any</category>
 <pubDate>Thu, 21 Feb 2008 09:17:19 -0800</pubDate>
 <dc:creator>liucougar</dc:creator>
 <guid isPermaLink="false">1954 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
