[jQuery] Re: Can this plugin be structured better?

2009-07-15 Thread Harvey
I did think of that solution but where would I put functions shared by myImg and myDiv that need access to the $this and tag variables?

[jQuery] Best way to structure this plugin

2009-07-12 Thread Harvey
Hey, I'm in the process of developing a new plugin but the way I have structured the codes doesn't seem quite right to me so I'm hoping someone might be able to offer a better way to do it. The plugin itself has different behaviour if called on different types of elements (images, divs etc) it h

[jQuery] Can this plugin be structured better?

2009-07-12 Thread Harvey
Hey, I'm in the process of developing a new plugin but the way I have structured the codes doesn't seem quite right to me so I'm hoping someone might be able to offer a better way to do it. The plugin itself has different behaviour if called on different types of elements (images, divs etc) with