Easy enough for me to whip one up: http://www.adamkoch.com/jQueryTest.html
On Dec 4, 4:07 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: > This shouldn't be happening. > > Do you have a test case page we could take a look at? > > JK > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > > Behalf Of aakoch > Sent: Thursday, December 04, 2008 1:30 PM > To: jQuery Development > Subject: [jquery-dev] Overwriting plugin functions - bug or feature? > > My co-worker and I found a bug/feature and wanted to get some feedback > as to the thought behind this "feature". > > Situation: On a single page I'm using jQuery via the script tag, then > I add a custom function, and finally I call jQuery again via the > script tag. When I try to run my custom function, it's gone! It seems > that although jQuery will try to use any previously created jQuery > object, jQuery.fn is overwritten every time. > > // don't recreate jQuery > var jQuery = window.jQuery = window.$ = function( selector, context ) > { ... > ... > // but always overwrite the functions? > jQuery.fn = jQuery.prototype = {... > ... > > Is there a reason that jQuery.fn is being overwritten? > > Thanks, > Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
