Just to expand on this quickly...

It acts like $.extend() is referencing DataSelector, as opposed to copying it like the docs say it does.

*shrug*

Spot wrote:

I have searched this extensively, so if it has been covered, please forgive me.

Let's see if I can describe this without confusing anyone.

We have a recurring need to give users quick lookup access to several tables of information. Therefore we use a custom build autocompleter/selector system.

Here is how it's laid out.

We have a jQ plugin for each different selector... and each of those $.extend()'s DataSelector, which holds the meat of the entire process.

Each plugin sets up the methods/vars which are specific to itself, and extends that over DataSelector.

The problem occurs when trying to use more than one of these selectors on the same page.

The last selector used overwrites all the vars, so that every selector acts like the last one.

I could somewhat understand this if it were several instances of the same type of selector, but it even happens with different types.

So my main question is, where can I find information on building plugins so that there can more than one instance running on the same page. I think if I can find out how it's normally accomplished, then I can modify that to work in this situation.


I apologize for the long post, and thank you in advance for any assistance you can provide.

Thanks,
Spot

Reply via email to