On May 24, 2006, at 7:33 PM, Melkor wrote:

>
> Hello, I've been using IntelliJ IDEA for development. They are adding
> support for JS editing, with refactoring and early warnings which its
> real nice.
>
> What I've found is that the way MochiKit exports functions to the
> global namespace makes difficult for IDEA to pick them. The only  
> way to
> make it recognize a function is to give its full name (e.g.:
> DOM.appendChildNodes() instead of appendChildNodes()).
>
> I don't like to use fully qualified names, after all, movement between
> packages is rellatively common (think recent Style refactoring).

It isn't actually common, MochiKit 1.4 is the first version to ever  
do this.

> I think the problem lies in the export mechanism as it is string  
> based,
> so what I want to know is: is there a better way to have the same
> effect as the current export mechanism and allow for better IDE
> support?

Probably not. It is pretty easy to acquire a list of exported  
functions, or spider them from the documentation... but I've never  
used (and have no plans to use) IntelliJ, so I don't know how it  
could be coerced into using that information.

-bob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to