Re: [jQuery] Passing parameters by object

2010-01-13 Thread John Arrowwood
If I were you, I would resist the temptation to do too much 'correctness' checking if it is a plugin that you are releasing to the general public. The reason I say that is sometimes it is desirable to add extra things in to your configuration that the plugin doesn't expect, so that it gets stored i

[jQuery] Passing parameters by object

2010-01-13 Thread SamCKayak
Passing parameters using an object has become a popular method among jQuery add-ins. Few plugins actually validate the passed parameter object to ensure that elements are spelled correctly. Most plugins use the jQuery.extend method which would copy the passed parameter { resiz: 1 } just as easily