Well yeah that's what I did but actually I don't like this way much.

I mean I have Class Language and I'm defining modifiers like

modifiers : {
    from : new Language('from'),
    to : new Language('to')
}

Anyway this once again proves my original idea that modifiers should have
modifiers as well

Irakli Gozalishvili
Web: http://rfobic.wordpress.com/
Address: Taksteeg 3 - 4, 1012PB Amsterdam, Netherlands


On Thu, Feb 26, 2009 at 11:04 PM, Blair McBride <[email protected]> wrote:

>
> Unfortunately, there's no way of doing it exactly like this at the
> moment. Although its an interesting idea.
>
> What you can do, however, is to use different noun types, each using
> some base functionality. For example:
>
>
> var mynoun_base = {
>   suggest: function() { ... }
> }
>
> var mynoun_type_1 = {
>   suggest: mynoun_base.suggest,
>   default: function() { ... }
> }
>
> var mynoun_type_2 = {
>   suggest: mynoun_base.suggest,
>   default: function() { ... }
> }
>
>
>
> Hope that helps.
>
> - Blair
>
>
>
>
> On 27/02/2009 2:26 AM, Irakli Gozalishvili wrote:
> > Hi,
> >
> >
> > I have a modifiers "from", "to" typeof Language what I'm trying to
> > figure out in the suggest / default method of the Language which
> > modifier is that "from"?? "to"?? cause based on that my default can be
> > different. Is there any way to do that ?
> >
> >
> > Irakli Gozalishvili
> > Web: http://rfobic.wordpress.com/
> > Address: Taksteeg 3 - 4, 1012PB Amsterdam, Netherlands
> >
> > >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" 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/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to