Commit graph

847 commits

Author SHA1 Message Date
Brandon Aaron 6d28ebff85 Some small optimizations to the event module. jQuery.event.trigger over 200% faster in IE and less code. Thanks in large to Ariel Flesler. 2008-04-22 05:23:55 +00:00
Brandon Aaron 9de35ce3e7 Small optimization to offset (thanks Ariel Flesler) 2008-04-21 22:54:46 +00:00
Brandon Aaron 3e285bd60d Small optimization to jQuery.curCSS (thanks Ariel Flesler) 2008-04-21 22:54:25 +00:00
Brandon Aaron 5d033dba02 Trigger onclick handlers of links 2008-04-21 20:39:17 +00:00
Yehuda Katz a9fe9a2a5f Closes #2688 2008-04-14 18:16:01 +00:00
Sean Catchpole 4515aba79c $.extend deep now copies children's children, ect... 2008-04-08 16:40:03 +00:00
John Resig d44ddef720 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. 2008-03-15 19:00:07 +00:00
John Resig 8f14ee1dd5 Imported the innerHeight and outerHeight methods from the Dimensions plugin. 2008-03-15 18:53:40 +00:00
John Resig a19a123d89 Fixed issue with typeof check - "array" isn't a valid type. 2008-02-17 15:05:55 +00:00
John Resig f43516f209 Landed a fix for bug #2037. 2008-02-06 05:18:25 +00:00
John Resig e71e4a47f3 Landed a minor fix for AIR (in the offset method). 2008-02-06 03:48:22 +00:00
Scott González 75cb0d8d05 Fixed .unbind('.namespace'). 2008-02-05 19:32:00 +00:00
John Resig b0c7df65d0 You can now overwrite values returned from .data() with .bind("getData") - returning a value will override any bound value on that element. 2008-02-03 18:43:04 +00:00
John Resig 4a11e6d70b Tweaked the .data() event triggering - it now triggers a single 'setData' event, passing in a key value pair of what was changed. 2008-02-03 17:56:21 +00:00
John Resig 703e89ba30 Added support for .unbind(".test") to unbind all namespaced events on an element. 2008-02-03 04:33:11 +00:00
John Resig 77da94552e 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). 2008-02-03 04:05:24 +00:00
John Resig 25c76232c6 Updated the years on the licensing. 2008-02-01 23:23:11 +00:00
John Resig 5da2e98cb3 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. 2008-01-26 00:26:28 +00:00
David Serduke 1faed11e3c Fix #2184 by using the jQuery.clean() function instead of a direct innerHTML assignment in the clone() function for IE. 2008-01-23 03:54:23 +00:00
David Serduke 0635df4391 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. 2008-01-17 21:38:58 +00:00
David Serduke 0cd307ec10 Changing end of line from CRLF to just LF like the rest of the source files. 2008-01-14 22:30:48 +00:00
John Resig c39bd07cc9 Added support for breaking in an object loop (Bug #2111). 2008-01-14 20:06:34 +00:00
John Resig ff08982508 And the rest of the _default change. 2008-01-14 19:37:31 +00:00
John Resig 260fc23e92 Tweaked the default Accept header to _default. 2008-01-14 19:37:05 +00:00
John Resig 6e739fd2ba Added a check to make sure that .style exists before trying to access it (Bug #2105). 2008-01-14 19:17:35 +00:00
John Resig 047debc750 Fixed default property name for Opera (bug #2159). 2008-01-14 19:15:27 +00:00
John Resig 709df93304 Added a fix for bug #2140. Opera doesn't like concating null or undefined values. 2008-01-14 18:46:44 +00:00
John Resig 5974495e6b 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) 2008-01-14 18:19:28 +00:00
Jörn Zaefferer c27cbdc477 reverted change for #2114 2008-01-14 09:42:53 +00:00
Jörn Zaefferer 2fa855601e fix for #2114; refactored tests for bind() to highlight failing select-change-test 2008-01-14 09:33:08 +00:00
John Resig 9bcd2b370b Tweaked comment for isFunction. 2008-01-12 23:03:39 +00:00
David Serduke d36382e9a3 Fixed an edge case in show() where the css says the display should be none. In that case force 'block' so it will actually show. 2008-01-12 01:06:37 +00:00
Yehuda Katz b91eef070d Adds support for username and password to $.ajax 2008-01-07 01:03:31 +00:00
Yehuda Katz 87d6bcec31 Fixes bug with charCode, bad 'var' and missing semicolon 2007-12-28 19:08:36 +00:00
David Serduke 05930c5a0d Fixed #2084 by added embed to the list of elements where it is ok to have self closing xhtml. 2007-12-21 05:47:33 +00:00
Brandon Aaron c73eadf599 Fixed memory leak in IE with non-native event types 2007-12-21 04:53:33 +00:00
Brandon Aaron fde3d616ac 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. 2007-12-21 02:11:26 +00:00
David Serduke 50c40add5a 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. 2007-12-20 20:40:20 +00:00
Brandon Aaron bdd6aca209 Fixing #2081 2007-12-20 19:31:02 +00:00
David Serduke 1764027370 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. 2007-12-20 18:55:43 +00:00
John Resig 3261544c38 Fixed #2027 - make sure that cloned elements (within appendTo, etc.) have their events cloned by default. 2007-12-20 13:36:56 +00:00
David Serduke 0419455473 Changed the $(document).ready() code to try and solve some problems in Safari, Opera, and IE. 2007-12-20 06:00:01 +00:00
Brandon Aaron e2fc993334 offset: make sure there is a parent node to work on while calculating scroll offsets (#2073) 2007-12-19 19:07:12 +00:00
Brandon Aaron add0681f90 offset: make sure border width always gets calculated in pixels 2007-12-19 19:05:34 +00:00
David Serduke be9302b710 Fixed #2077 by adding a var to make it a local variable instead of initializing a global one. 2007-12-19 18:47:01 +00:00
Brandon Aaron a7dfbb55d9 Short-circuit jQuery.event.fix if it has already fixed the current event object. 2007-12-19 18:35:58 +00:00
Brandon Aaron b32ec31d89 Insure width/height do not return a negative number. 2007-12-19 18:23:46 +00:00
David Serduke 3bb82a34de 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. 2007-12-19 01:48:05 +00:00
David Serduke 1d7b7b94ef 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. 2007-12-19 01:10:20 +00:00
David Serduke 7ef40fd199 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. 2007-12-18 17:19:33 +00:00