[jquery-dev] Issue with JQuery autocomplete plugin

2009-07-31 Thread Pankaj
Hi, I have updated the autocomplete based on the trunk on the date 24th feb 09 for my application.Now i have found one issue, which I am not able to identify the root cause for it. Example: When I type "pua" in the autocomplete field. Four matches are returned for users with the first name puan

[jquery-dev] Re: apply selector to element and descendants

2009-07-31 Thread Andrea Giammarchi
wait, you were complaining your logic is different so you need to write your idiom logic each time you need it. As you wrote, you need at least 2 extra operations for what you need so you are asking here to change and slow down jQuery for a 1% of "lazyness", your requirements ... and sometimes. No

[jquery-dev] Re: IE6: alive, well and prosperous

2009-07-31 Thread Kevin Dalman
> > This is getting silly. The last thing I want to do is support > > Netscape 6. > > The context was legacy systems. And the decision what to > support or not is always here to make. Yes, it was people 'stuck' with Window 2000 or other OS that cannot run any IE past 6. And your 'suggestion' was:

[jquery-dev] Re: apply selector to element and descendants

2009-07-31 Thread Nathan Bubna
nice! of course, managing another mini-plugin isn't really much more convenient (for me, at least) than just reusing the two lines i posted when i need this. i think Jack (and myself, once he mentioned it) was suggesting that jQuery already supported this idiom, not that he lacked a solution. :)

[jquery-dev] Re: apply selector to element and descendants

2009-07-31 Thread Andrea Giammarchi
Add this instantly after jQuery inclusion if you need it, and problem solved, isn't it? $ = jQuery = (function($){ function jQuery(selector, context){ var r = $.apply(this, arguments); return context && $(context).is(selector) ? r.andSelf() : r; }; jQuery.prototype = $.

[jquery-dev] Re: apply selector to element and descendants

2009-07-31 Thread Nathan Bubna
On Thu, Jul 30, 2009 at 8:22 PM, Karl Swedberg wrote: > Hi Jack, > One way you could do it is to use the .andSelf() method: > $(context).find('selector').andSelf(); > http://docs.jquery.com/Traversing/andSelf that's fine if you already know the self matches the selector. but if you're not sure,

[jquery-dev] Re: JQuery Fx Unit Test

2009-07-31 Thread John Resig
I've looked into this issue a bit and, so far, the only thing I've been able to determine is that sometimes when a browser is under heavy load timers start to work incorrectly (I've noticed this much more so in Firefox, and to a lesser degree in Safari). Sometimes one timer will fire after another,

[jquery-dev] Re: Get a selector path from a jquery object

2009-07-31 Thread Julian Aubourg
The issue with simple code like this are siblings. 2009/7/30 DBJDBJ > > Or , maybe : > > function xpath ( selector ) > { > var retval_ = [], xpath_ = "" ; > $(selector).each( function (){ > var e = this ; > do { > xpath_ = "/" + e.tagName + (e.id ? "[...@id=" + e.id +"]" : "")

[jquery-dev] JQuery Fx Unit Test

2009-07-31 Thread Clint Talbert (Mozilla Address)
Hi, I'm trying to track down a problem that we are having with a 1.2.2 version of the Jquery library and test suite that we run in Mozilla's automated Mochitest system (bug 484994 [1]). The problems we seem to have most often are that the tests "stop(clearQueue, gotoEnd)" and "stop() - several i

[jquery-dev] boxModel detection

2009-07-31 Thread Andrea Ercolino
Today I've stumbled upon a problem with boxModel detection already reported as many different bugs: http://dev.jquery.com/ticket/4267, http://dev.jquery.com/ticket/4320, http://dev.jquery.com/ticket/4406, http://dev.jquery.com/ticket/4552, http://dev.jquery.com/ticket/4558, and also in a recent me

[jquery-dev] Re: prototypal inheritance as part of jQuery core?

2009-07-31 Thread Már
> How would options = $.beget($.myplugin.defaults,  options || {}); be > different than options = $.extend({}, $.myplugin.defaults, options || > {}); ? With `$.beget()` you're able to change/add values in ` $.myplugin.defaults` *afterwards* and have them insta-magically reflected in `options` (ex

[jquery-dev] Re: prototypal inheritance as part of jQuery core?

2009-07-31 Thread Ricardo
How would options = $.beget($.myplugin.defaults, options || {}); be different than options = $.extend({}, $.myplugin.defaults, options || {}); ? On Jul 30, 11:48 am, Már Örlygsson wrote: > Hi. > If it hasn't been already considered (and rejected), I'd like to float > the idea of adding support

[jquery-dev] Re: prototypal inheritance as part of jQuery core?

2009-07-31 Thread tres
Sorry, meant to give the source also: http://code.google.com/p/jquery-plugin-dev/source/browse/trunk/jquery.plugin.js Cheers. On Jul 31, 5:49 pm, tres wrote: > Think this might be a similar > topic:http://groups.google.com/group/jquery-dev/browse_thread/thread/664cb8... > > That plugin i wrote

[jquery-dev] Re: prototypal inheritance as part of jQuery core?

2009-07-31 Thread tres
Think this might be a similar topic: http://groups.google.com/group/jquery-dev/browse_thread/thread/664cb89b43ccb92c/72cf730045d4333a?hl=en&q=structure+plugin+authoring#72cf730045d4333a That plugin i wrote allows an object to be attached to the jQuery core along with its own namespace while still