Ariel Flesler [Sat, 10 Jan 2009 00:16:48 +0000 (00:16 +0000)]
testrunner: Putting back the global variables used for ajax tests. I added many calls to delete though. The global namespace must be cleaned up before calling start() again.
John Resig [Fri, 9 Jan 2009 22:10:42 +0000 (22:10 +0000)]
Made it so that you can bind a single function to multiple .live() selectors. Additionally, simplified the proxy code to provide a default proxy function.
Fixes #3787.
John Resig [Wed, 7 Jan 2009 00:13:57 +0000 (00:13 +0000)]
Landed a number of improvements to the selector engine. Results are auto-merged onto the jQuery
object, class filtering is now done inline, and not filtering is more efficient.
John Resig [Mon, 5 Jan 2009 01:14:36 +0000 (01:14 +0000)]
Made hide, show, toggle, slideUp, slideDown, and slideToggle animate margins and paddings in addition to height, width, and opacity (results in a much-smoother animation).
John Resig [Sun, 4 Jan 2009 23:34:18 +0000 (23:34 +0000)]
Moved the copyright to the intro file, added a ! so that it passes through YUIMin untouched, and changed the Date and Revision so that they're now generated automatically based upon all of jQuery rather than just the core file.
John Resig [Sun, 4 Jan 2009 15:29:27 +0000 (15:29 +0000)]
Moved from the old JSMin to using YUIMin for compressing the jQuery source. Additionally landed some improvements from #3770 which dramatically reduce the filesize. The final minifed + gzipped size of jQuery went from 19817 bytes to 18063 bytes.
Ariel Flesler [Fri, 2 Jan 2009 23:07:16 +0000 (23:07 +0000)]
jquery event: Now using an internal argument to detect if bubbling on $.event.trigger. The other would fail when it receives an event object with target. Also, the target isn't nulled anymore.
In addition, there was a lot of code running O(n) during bubbling while not needed.
Ariel Flesler [Wed, 31 Dec 2008 02:58:13 +0000 (02:58 +0000)]
jquery event:
* event objects have isDefaultPrevented, isPropagationStopped and isImmediatePropagationStopped methods.
* Removed donative and dohandlers from $.trigger
* event.result carries the last returned data from a handler(not undefined).
* $.trigger doesn't keep bubbling if stopPropagation() is called.
* Same event object is used all along for global trigger
* Fixed the bug where target doesn't change when triggering on many elements.
* The data array on $.trigger was accumulating objects as it bubbles.
testrunner: adding more tests
Ariel Flesler [Tue, 30 Dec 2008 02:31:26 +0000 (02:31 +0000)]
jquery data: Closes #3539. Exposed jQuery.queue. Moved all the data and queue functions to their own module. Made the dequeue function more generic(designed to be used on functions). Closes #3748. Reverted a previous modification.
Ariel Flesler [Thu, 25 Dec 2008 21:44:54 +0000 (21:44 +0000)]
jquery event: Closes #3662. Adds a jQuery.Event class. Makes trigger and fix simpler. Adds currentTarget attribute to event objects. Event object isn't passed as part of data.
John Resig [Mon, 22 Dec 2008 04:59:34 +0000 (04:59 +0000)]
Added a new liveQuery/event delegation hybrid method: .live and .die. Easily adapts event delegation to the jQuery style. $("div").live("click", fn); $("div > #foo").live("submit", fn); $("div").die("click");
John Resig [Sun, 21 Dec 2008 21:22:44 +0000 (21:22 +0000)]
Added the new jQuery.support object and removed all uses of jQuery.browser from within jQuery itself (while simultaneously deprecating the use of jQuery.browser).
John Resig [Sat, 20 Dec 2008 01:19:17 +0000 (01:19 +0000)]
Landing the new Sizzle selector engine. There'll need to be some later tweaks (to make the tests a little more pragmatic - especially for document order elements). But it appears to be passing well and that's enough. Closes #3563.
John Resig [Fri, 19 Dec 2008 18:21:12 +0000 (18:21 +0000)]
Rewrote the hide and show methods to fix the issue with Safari not hiding distached elements. Fixed #1239, #2233, #3038, #3343, #3395. They're also faster now, as well.