jquery event: from #2249, adding $.event.proxy to link event handlers, and implementing it on $.event.add, $.fn._toggle and $.fn.one.
It also fixes a bug in $.fn.one that was unbinding ALL the existing handlers.
jQuery.event.fix performance boost. An example: click event was previously ~3ms and is now < 1ms. jQuery.event.trigger also got another small boost in performance.
John Resig [Sat, 15 Mar 2008 19:00:07 +0000 (19:00 +0000)]
Made outerHeight/outerWidth accept .outerWidth(true) to include the margin. If any options are passed in it's assumed that you want the margin included.
John Resig [Sun, 3 Feb 2008 04:05:24 +0000 (04:05 +0000)]
Added $().data(), $().removeData(), and .bind("click!"). .data() and .removeData() handle namespaced data, .data() triggers a "set-KEY" event on all modified elements, and .bind("click!") only triggers a click (and no namespaced events).
John Resig [Sat, 26 Jan 2008 00:26:28 +0000 (00:26 +0000)]
De-eval'd selectors and the various DOM methods (will marginally help our speed and make us more compatible with projects like Caja and Adobe AIR). Left a selector eval in for backwards compatibility support of selector plugins.
David Serduke [Thu, 17 Jan 2008 21:38:58 +0000 (21:38 +0000)]
Fixed #2174 by removing the s.dataType == "json" check for possible cross domain since it causes absolute urls to use a <script> tag ajax retrieval even though absolute urls work fine for retrieving local data. Cross-domain jsonp will still work since the $.ajax() function actually changes the s.dataType to "script" before it reaches this check in cases where it is s.dataType == "jsonp" or s.dataType == "json" and a parameter has =? in it.
John Resig [Mon, 14 Jan 2008 18:19:28 +0000 (18:19 +0000)]
Just added support for Accept headers in Ajax requests - defaults to the correct header depending on the type of request that's being performmed. (Bug #1986)
Brandon Aaron [Fri, 21 Dec 2007 02:11:26 +0000 (02:11 +0000)]
Removed check to prevent event from being fixed twice. Unfortunately, in IE this is sometimes necessary with its global event object. Binding both a mousedown and mousemove event is an example.
David Serduke [Thu, 20 Dec 2007 20:40:20 +0000 (20:40 +0000)]
Fixed a couple problems found in the test suite. First, IE doesn't like it when text nodes were trying to duplicate their events in clone, so don't do text nodes (that shouldn't have events anyway). Also the fx module was freezing from a recent update that wasn't quite finished.
David Serduke [Thu, 20 Dec 2007 19:21:56 +0000 (19:21 +0000)]
Removed a unit test that tested to see if queued objects were of a certain type. It was decided you can queue anything and it is up to the coder to make sure it was intended.
David Serduke [Thu, 20 Dec 2007 18:55:43 +0000 (18:55 +0000)]
Fixed #2080 by removing the check for nodeType != 1. It was put in to limit the queuing to just dom objects (ie not text nodes and comment nodes), but the queuing functionality is being used more broadly than I realized so the check is now removed.
David Serduke [Thu, 20 Dec 2007 07:39:35 +0000 (07:39 +0000)]
Fixed a problem in the unit tests for IE where an optimization made the test case not work. The optimization was fine. It was the unit test that was taking a short cut which caused it to fail after the optimization went in.
Jörn Zaefferer [Wed, 19 Dec 2007 22:26:05 +0000 (22:26 +0000)]
added version to all builds; changed current version to 1.2.2-pre - to be updated after each release so its clear that a build is from which milestone; build.xml cleanup (removing uselss lite, docs, test and _with_plguins targets); deleted useless docs build files (replaced by wiki and wiki xml exporter and api browsers)
David Serduke [Wed, 19 Dec 2007 01:48:05 +0000 (01:48 +0000)]
Second part of the fix for #2071. An empty string "" was being sent to .bind() and when the events were being cleared it went in to an infinite recursive loop till memory was out. The test was !types in the function and changing it to types == undefined fixed the error.
David Serduke [Wed, 19 Dec 2007 01:10:20 +0000 (01:10 +0000)]
Changed CRLF end of lines to just LF. Other than that there were no changes in this commit. Try svn diff -x --ignore-eol-style -r 4224:4225 to see that.
David Serduke [Tue, 18 Dec 2007 17:19:33 +0000 (17:19 +0000)]
Fixed #2076 where .val() could return an array instead of undefined when the jquery object was empty. The bug was created during the .val() refactoring for the javascript strict FF ticket.
Brandon Aaron [Mon, 17 Dec 2007 20:22:53 +0000 (20:22 +0000)]
Fixed #2069. The ready helper and shortcuts act the same. You can also still bind, unbind and trigger the ready event on the document element but doing so follows the events API unlike the ready helper method.
David Serduke [Mon, 17 Dec 2007 16:54:44 +0000 (16:54 +0000)]
Fixed #2062 by adding a check to see if the selector is array-like in .not() before testing it as an array. Otherwise it does a straight comparison during the filter test.