On Sat, Jul 11, 2009 at 1:00 AM, satyr <[email protected]> wrote:
> > On Sat, Jul 11, 2009 at 1:12 AM, Heather<[email protected]> > wrote: > > if (!CmdUtils.parserVersion || CmdUtils.parserVersion == 1) > > //parser 1 command here > > else > > //parser 2 command here > > Or: > > if (CmdUtils.parserVersion == 2) > //parser 2 command here > else > //parser 1 command here > > On Sat, Jul 11, 2009 at 1:43 AM, Christian Sonne<[email protected]> > wrote: > > Wouldn't that be: > > if (!CmdUtils.parserVersion || CmdUtils.parserVersion() == 1) > > ? (notice the "()") > > > https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Creating_New_Objects/Defining_Getters_and_Setters > Ahh - didn't realize it was a property - testing for existence made me think method, or your approach would more sense... -- cers / Christian Sonne --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
