If you aren't supporting 0.1, you don't have to care about
parserVersion (in 0.5, Parser 1 supports Parser 2 API).
If you are specifically supporting 0.1, this may work:
if (/^0\.1/.test(Application.prefs.getValue("extensions.ubiquity.lastversion",
""))) {
// 0.1.*
}
On Tue, Jul 21, 2009 at 9:32 PM, esquifit<[email protected]> wrote:
>
> Here is an example of what I'm referring to:
>
> http://gist.github.com/151313
>
> * In Ubiquity 0.1.9 the command is not even recognized. I got a
> message that the command is for another version of Ubiquity instead.
> * In Ubiquity 0.5 with parser 2 it is working just fine.
> * In Ubiquity 0.5 with parser 1 the command is recognized but the
> parameters of execute and preview have the same form as those expected
> by parser 2, so the command does not work. In order to fix this I must
> remove the check for parserVersion and assume parser2, even if in the
> preferences parser 1 is set.
>
> This defeats in opinion the whole point of paserVersion.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---