Thanks for the replies! Initially, I thought to use arrays, however, I don't think for this plugin, they'll suffice. I could definitely be wrong here, so let me know if my thinking is incorrect.
If you look at the code sample, you'll see in config.2 3 properties, but config.1 only has 2. This is a sample piece of code, but the objects within config may contain 5+ properties. These will be optional. There will only be 2 properties that will be required. With that in mind, would I be able to use an array? I also want the users to know what they are configuring when building up the function call. I don't think an array would be able to do that for me. Using an array, I'd need to values in a certain order every time. Some of the values may be there and they may not... What do you think I could do differently? -- 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]
