Re: [jQuery] Re: Plugin Authoring Code Example Incorrect

2009-11-08 Thread Shane Riley
To: jQuery (English) Subject: [jQuery] Re: Plugin Authoring Code Example Incorrect I ended up using this syntax instead: return this.each(function(){}); On Nov 7, 11:43 am, "Morten Maxild" wrote: 'return true' is wrong, you need to return the 'wrapped set' to

Re: [jQuery] Re: Plugin Authoring Code Example Incorrect

2009-11-08 Thread Karl Swedberg
:-) -Original Message- From: Shane Riley [mailto:shanerileydoti...@gmail.com] Sent: Sunday, November 08, 2009 6:44 PM To: jQuery (English) Subject: [jQuery] Re: Plugin Authoring Code Example Incorrect I ended up using this syntax instead: return this.each(function(){}); On Nov 7, 11:43 am

Re: [jQuery] Re: Plugin Authoring Code Example Incorrect

2009-11-08 Thread Morten Maxild
Exactly...looks correct:-) >-Original Message- >From: Shane Riley [mailto:shanerileydoti...@gmail.com] >Sent: Sunday, November 08, 2009 6:44 PM >To: jQuery (English) >Subject: [jQuery] Re: Plugin Authoring Code Example Incorrect > >I ended up using this syntax inste

[jQuery] Re: Plugin Authoring Code Example Incorrect

2009-11-08 Thread Shane Riley
I ended up using this syntax instead: return this.each(function(){}); On Nov 7, 11:43 am, "Morten Maxild" wrote: > 'return true' is wrong, you need to return the 'wrapped set' to support > chaining. The $().each method does return the 'wrapped set' and you can take > advantage of this. > > HTH