Oops, I misread, ignore my comment, sorry :)

Ariel Flesler

On 9 ene, 19:04, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> $().something == $.fn.something
>
> Ariel Flesler
>
> On 9 ene, 16:29, Zoram <[EMAIL PROTECTED]> wrote:
>
>
>
> > I am working on a plugin and was trying to figure out what was
> > happening to break my code..
>
> > I have in my plugin functions similar to the following:
>
> > $.fn.pluginName = function() {}
>
> > $.fn.pluginName.oneThing = function () {
> >    ...
>
> > }
>
> > $.fn.pluginName.anotherThing = function () {
> >    ...
>
> > }
>
> > I try to call it like so:
>
> > $('#idOfElement').pluginName.oneThing();
>
> > The problem is that the this.each() is 'not defined' when I use it in
> > the oneThing or anotherThing methods. If I do the methods as:
> > $.fn.oneThing and $.fn.anotherThing it works fine... but not when they
> > are under the pluginName. Why would this happen and is there a way to
> > fix it? or am i trying to do the wrong thing to namespace the methods?
>
> > Thanks in advance.- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

Reply via email to