if the number matters why not an array?
On Jun 25, 2011, at 11:26 PM, Matthew Bramer wrote:
> I think that subject title is syntactically correct. Feel free to correct me
> if I'm mistaken.
>
> Here's some sample code:
>
> console.log( somePlugin.Query({
> listName: "Bid Key",
> config: {
> 1: {
> staticName: "ModuleNotes",
> value: "Some Comments"
> },
> 2: {
> staticName: "ID",
> value: 14,
> LookupId: true
> }
> }
> }
> })
> );
>
> What I'm trying to do is figure out how many things are stuffed inside of
> config. In this example it would be 2, but there could be 20. Based on the
> number of things stuffed into config, I need to run different code. I
> foolishly tried inside the plugin: opt.config.length but that returns
> undefined.
>
> Does anyone know how to do this?
>
> --
> To view archived discussions from the original JSMentors Mailman list:
> http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here:
> http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]