Commit graph

1239 commits

Author SHA1 Message Date
John Resig 25e83d27cb Made it so that the last return value is always returned from handle() (unless one of the return values was false, in which case the return value is false). (Bug #1416) 2007-08-28 04:34:23 +00:00
John Resig 127c0b8a5d Fixed the issue where $("body").find("div#foo") would ignore the specified tag name. (Bug #1543) 2007-08-27 04:58:02 +00:00
John Resig 3ae74b523e Added new replaceWith() (replace all matched elements with the specified HTML/DOM Elements/Array/etc.) and replaceAll() (replace the specified elements with the set of matched elements). 2007-08-25 05:12:20 +00:00
John Resig 0477a6e99e Added a test case for "purple include", fixed a bug. 2007-08-25 03:55:12 +00:00
John Resig 34f1042902 New feature: You can now inject portions of a document via .load(), as opposed to the full thing.
Examples:
- $("#test").load("test.html #something");
- $("#test").load("test.html p.user");

Caveats:
- No scripts are injected when a selector is used.
- The selector is rooted inside the head and body - it's equivalent to doing:
  $("body,head").find(selector)
2007-08-25 03:33:08 +00:00
John Resig 97f2032e13 Landing animation of scrollLeft/scrollTop (also works on random DOM object properties as well). 2007-08-25 03:03:27 +00:00
John Resig 557ec9a92f Tagging the 1.1.4 release. 2007-08-24 01:49:27 +00:00
John Resig 257eaf7ee3 Marked all the appropriate methods as being deprecated for the 1.1.4 release (in preparation for 1.2). 2007-08-24 01:28:07 +00:00
John Resig 4df20c0c1b Brought back a husk method to represent evalScripts. I didn't realize so many plugins relied on it (it's deprecated in this release). 2007-08-24 01:06:23 +00:00
John Resig f948f02680 Tweaked the Ajax test suite for Safari. 2007-08-22 07:10:50 +00:00
John Resig f53aa62fd3 Only bind .ready() once per instance of jQuery - and only bind if the ready() method is actually called (nothing is bound if window/load is used). 2007-08-22 06:51:41 +00:00
John Resig 3fb4779abb Fixed bug with the packed version of jQuery. 2007-08-22 06:47:44 +00:00
John Resig 96f2d0d00b Fixed the case where global events weren't being triggered on window and document. 2007-08-22 06:19:47 +00:00
John Resig f2f399dcd5 Fixed use of eval() and new Function() to work within the correct scope (and not throw errors). 2007-08-22 06:19:22 +00:00
John Resig fc3e180465 Made 'jQuery' unrollable via .noConflict(true) and instances of new Function() have been converted to eval(function(){}) in order to handle jQuery name changes. (Bug #1393) 2007-08-22 05:44:47 +00:00
John Resig e06b7447c2 Added fix for undefined property in animation, in IE (Bug #1518) 2007-08-22 04:52:53 +00:00
John Resig b99fd476d0 Using some of the ideas presented by rformato, I've significantly sped up $("#id") selection. It's now just 10% slower than doing: $(document.getElementById("test")), which seems quite acceptable. (Bug #1316) 2007-08-21 08:25:11 +00:00
John Resig 46e770352a Added the new :has() selector (Bug #1521) 2007-08-21 07:33:52 +00:00
John Resig c8bd6e0a4a You can now assign jQuery to random namespaces - very cool. (Bug #1393) 2007-08-21 07:00:06 +00:00
John Resig b6d920cf05 Fix for a selector speed regression (calling a simple selector many times resulted in a significant speed down). This has been fixed by breaking the RegExps out into the global scope. This required that a closure be implemented around the full jQuery script (which is now the case). Some simple changes were made in addition to the RegExp one, allowing for some greater flexibility on our part - and hopefully better compression.
Speed results:
http://dev.jquery.com/~john/ticket/1351/ vs.
http://dev.jquery.com/~john/ticket/1351/113.html vs.
http://dev.jquery.com/~john/ticket/1351/112.html
2007-08-21 05:43:44 +00:00
John Resig 8c15e852a4 Two quick fixes in relation to #1028. ajaxSetup shouldn't be deep and the boolean arg should be used, not overwritten with 'true'. 2007-08-21 04:46:07 +00:00
John Resig e112e6b04d Make deep .extend() an optional argument - it will go deep if you pass in an boolean as the first argument (fixed bug #1028). 2007-08-21 04:42:31 +00:00
Jörn Zaefferer 8cf5d2df19 ignore dist folder 2007-08-20 20:31:06 +00:00
Jörn Zaefferer 4d4f13a96b ignore eclipse' .project files 2007-08-20 18:59:21 +00:00
John Resig bd78d4f65d Fixed two cases where []. was used instead of Array.prototype. (Bug #1427) 2007-08-20 07:08:01 +00:00
John Resig 05fb8eaa10 Just pushed in my changes for making jQuery.each on objects faster, sample results: http://dev.jquery.com/~john/ticket/each/obj.html 2007-08-20 07:04:00 +00:00
John Resig f0353e89ab Just pushed some major speed improvements through for $.each() - we're now seeing a 2x speed improvement over 1.1.3. Some crude results can be found here: http://dev.jquery.com/~john/ticket/each/ 2007-08-20 06:29:41 +00:00
John Resig 2b05e24993 Make jQuery work without warnings in strict mode, in Firefox. 2007-08-20 03:59:34 +00:00
John Resig 887c00780d Implemented the new .slice() method (bug #1517). 2007-08-20 02:51:57 +00:00
John Resig 2ef4093cf7 Complete overhaul of the Ajax test suite, it's now passing in all browsers. In order to achieve this I had to fix a numbe
r of bugs in the suite itself, along with other random bugs that popped up. The following bugs were resolved along the wa
y: #1236 (.extend() keeps processing when it hits nulls), #1028 (.extend() now works recursively), #1080 ($.get no longer
 overwrites the data parameter), #1210 (Creating script and link tags now work), and #1463 (jQuery.global has been re-too
led to no longer leak memory and slow things down).
2007-08-19 23:37:26 +00:00
John Resig 24db022ba0 Added a fix for IE returning comment nodes in * queries. I put the logic in $.merge() but added a conditional such that the speed hit only effects IE users. (Bug #1155) 2007-08-19 07:28:41 +00:00
John Resig 735e2e8197 Applied arrix's fix for getting style values on elements that aren't in the DOM, in Safari. (Bug #1482) 2007-08-19 07:06:15 +00:00
John Resig f64eb21fad We were catching exceptions within the success callback of an Ajax request, then causing an error callback to be called (which is incorrect). (Bug #1441) 2007-08-19 00:48:53 +00:00
John Resig 05d401dd84 Fixed non-unique results from .parent(), .parents(), .next(), etc. (Bug #1449) 2007-08-19 00:07:41 +00:00
John Resig 760a244dbd Added a fix for bug #1489, appending <caption> was broken. 2007-08-16 03:35:29 +00:00
Jörn Zaefferer d38ee78db9 reverted my "fixes", seems like they work only with the latest (dev) rhino version, which isn't that helpful 2007-08-14 16:37:14 +00:00
John Resig 78fe70f3e6 More missing semicolons. 2007-08-07 22:25:26 +00:00
John Resig 560484fd8d Added a couple JSLint-caught fixes. 2007-08-07 22:23:30 +00:00
John Resig 6b0d3bb273 Brought back jQuery.globalEval(), fixing bug #1425. 2007-07-31 02:59:53 +00:00
John Resig 4ae80a1e2c When we disabled triggering of clicks, we also killed off blur and focus, this fixes that (bug #1440). 2007-07-31 02:22:39 +00:00
John Resig 660490e6f4 The test for underscore selectors broke under Opera, so the element is now loaded via Ajax and tested. (bug #1084) 2007-07-30 02:52:24 +00:00
John Resig 334462b23c IE prunes whitespace from the start of innerHTML-injected strings. This fixes that. 2007-07-30 02:14:06 +00:00
John Resig d8e9f0c616 Fixed failing test for Safari 2. 2007-07-29 23:10:00 +00:00
John Resig 17949afc34 Got .css() working in Safari 2 as well (a number of shortcuts had to be removed, unfortunately). This should successfully close bug #1349. 2007-07-29 23:01:42 +00:00
John Resig 3c82f8fb4a Added a fix for Safari's broken CSS getComputedStyle accessing. Additionally, added a fix for Safari mis-reporting @selected for display: none options. The test suite is now completely passing in Safari 3. (Bug #1349) 2007-07-29 22:32:06 +00:00
John Resig 80a149b828 Integrated the custom fx test suite into the main test suite. All tests are now run automatically. Removed the old suite, as it was no longer needed. 2007-07-29 19:07:21 +00:00
Sean Catchpole e6c067858e nevermind, I'm dumb. =P 2007-07-26 00:31:48 +00:00
Sean Catchpole 8a80d05a44 Fixed ajax array arguments in $.param 2007-07-26 00:27:56 +00:00
John Resig f8b00051c3 $("#foo", xml) would always return an empty set, fixed (bug #877). Additionally, a bug in jQuery.isXMLDoc(xmlDoc) was discovered, if the element was, in fact, an XML document. 2007-07-25 00:56:50 +00:00
John Resig bdf05d890f Added a fix for relative // - $("//div",this) (bug #1418) 2007-07-25 00:39:45 +00:00