Input on autofill for Coda MooMode update

3 views
Skip to first unread message

pradador

unread,
Nov 23, 2009, 8:53:43 PM11/23/09
to MooTools Users
Hey guys, I'm looking to update the MooTools syntax mode I wrote for
Coda to the latest functions and features in MooTools 1.2.4

Just wanted to get some input on how much to add to the autofill
feature. My options are to stick with simple parentheses autofill
after functions and just move the cursor inside for you to fill them
up... or I can add the hints to the methods so the autofill would look
something like:

$extend(original, extension);

instead of just:

$extend();

Another question would be whether people prefer to have the parameter
type in the hint, so the example would become:

$extend(object original, object extension);

Anyway, I'd appreciate your input and help in making the MooMode
better!

Fábio M. Costa

unread,
Nov 24, 2009, 7:06:24 AM11/24/09
to mootool...@googlegroups.com
I like $extend(object original, object extension);, it gives you a better idea of what the function and can do. The problem is that on some functions you don't have well defined parameters, for example, getStyles can be used like:

getStyles(mixed style, string style...); // returns the valus of the style

Which can be used like: getStyles('border', 'zIndex'), or getStyles(['border', 'zIndex']), both will give same result.

So in this case it gets kind of confusing. But i still prefer it.


--
Fábio Miranda Costa
Solucione Sistemas
Engenheiro de interfaces
Reply all
Reply to author
Forward
0 new messages