jquery.git
16 years agojquery core: #2548, #2170, #2188, #2099, #1170, #2558, #2521, #2119, #1271, #2453...
Ariel Flesler [Tue, 13 May 2008 00:37:30 +0000 (00:37 +0000)]
jquery core: #2548, #2170, #2188, #2099, #1170, #2558, #2521, #2119, #1271, #2453, #2537.

mass refactoring of $.attr (#2548)

* Changes
- undefined was returned for falsy values.
- expando attributes are used when possible.
- one $.isXmlDoc instead of 2.
- $.attr( style, ... ) goes thru less useless checks.
- reduced code size of recurrent accessed variables/checks.
- $.props doesn't need redundant sets of key value anymore.
- added cellSpacing to $.props (#2521)

16 years agotest runner: improved a test and added a missing semicolon
Ariel Flesler [Mon, 12 May 2008 22:59:58 +0000 (22:59 +0000)]
test runner: improved a test and added a missing semicolon

16 years agotest runner: when errors are thrown in a test, the message is successfully show on...
Ariel Flesler [Mon, 12 May 2008 22:31:27 +0000 (22:31 +0000)]
test runner: when errors are thrown in a test, the message is successfully show on all browsers.

16 years agojquery fx & event: replaced the use of .apply(), where .call() could had been used.
Ariel Flesler [Mon, 12 May 2008 19:45:02 +0000 (19:45 +0000)]
jquery fx & event: replaced the use of .apply(), where .call() could had been used.

16 years agojquery core: Applied #1318 to jQuery.grep
Ariel Flesler [Mon, 12 May 2008 01:21:50 +0000 (01:21 +0000)]
jquery core: Applied #1318 to jQuery.grep

16 years agojquery core: declared undefined locally, to speed up references, and allow munging...
Ariel Flesler [Sun, 11 May 2008 20:59:24 +0000 (20:59 +0000)]
jquery core: declared undefined locally, to speed up references, and allow munging all their names.

16 years agofix small typo in comment
Ed Engelhardt [Sun, 11 May 2008 10:17:11 +0000 (10:17 +0000)]
fix small typo in comment

16 years agojquery core: reverted qunit introduction until build scripts are updated
Jörn Zaefferer [Thu, 8 May 2008 21:42:40 +0000 (21:42 +0000)]
jquery core: reverted qunit introduction until build scripts are updated

16 years agojquery testsuite: switch to qunit
Jörn Zaefferer [Thu, 8 May 2008 19:33:49 +0000 (19:33 +0000)]
jquery testsuite: switch to qunit

16 years agotest runner: added 2 tests for [5500]
Ariel Flesler [Thu, 8 May 2008 17:16:49 +0000 (17:16 +0000)]
test runner: added 2 tests for [5500]

16 years agotest runner: extra tests for $.fn.add enabled by [5503] and a small fix for an html...
Ariel Flesler [Thu, 8 May 2008 17:11:03 +0000 (17:11 +0000)]
test runner: extra tests for $.fn.add enabled by [5503] and a small fix for an html() test.

16 years agojquery core: closes #2811, $.fn.add now calls $.unique internally, also it was failin...
Ariel Flesler [Thu, 8 May 2008 17:08:59 +0000 (17:08 +0000)]
jquery core: closes #2811, $.fn.add now calls $.unique internally, also it was failing for array-like f.e: window.

16 years agotest runner: extra test case, [5501]
Ariel Flesler [Thu, 8 May 2008 16:25:12 +0000 (16:25 +0000)]
test runner: extra test case, [5501]

16 years agojquery event: fixed $.fn.load, closes #2819.
Ariel Flesler [Thu, 8 May 2008 16:23:43 +0000 (16:23 +0000)]
jquery event: fixed $.fn.load, closes #2819.

16 years agojquery core: closes #2771
Ariel Flesler [Thu, 8 May 2008 16:14:49 +0000 (16:14 +0000)]
jquery core: closes #2771
$.inArray now makes a === check because of IE.
$.inArray is used in $.fn.index, this is shorter, and breaks the loop when possible.
$.fn.index can receive a jquery object, and the first element is used

16 years agojquery event: removing 3 unnecessary lines since the addition of $.event.proxy.
Ariel Flesler [Thu, 8 May 2008 16:10:47 +0000 (16:10 +0000)]
jquery event: removing 3 unnecessary lines since the addition of $.event.proxy.

16 years agotest runner: making 2 tests more flexible because they yield a slightly different...
Ariel Flesler [Thu, 8 May 2008 16:04:01 +0000 (16:04 +0000)]
test runner: making 2 tests more flexible because they yield a slightly different result on Safari 3, but still acceptable.

16 years agoMaking sure originalTarget gets copied over from the original event object
Brandon Aaron [Wed, 7 May 2008 13:21:16 +0000 (13:21 +0000)]
Making sure originalTarget gets copied over from the original event object

16 years agoajax test: Removed test for extending with null.
Scott González [Wed, 7 May 2008 01:16:54 +0000 (01:16 +0000)]
ajax test: Removed test for extending with null.

16 years agotest runner: extra test for makeArray, related to [5481]
Ariel Flesler [Wed, 7 May 2008 00:46:14 +0000 (00:46 +0000)]
test runner: extra test for makeArray, related to [5481]

16 years agojquery core: Reverting the changes added at [5480]
Ariel Flesler [Wed, 7 May 2008 00:07:44 +0000 (00:07 +0000)]
jquery core: Reverting the changes added at [5480]

16 years agojquery core: makeArray was parsing forms into array of elements.
Ariel Flesler [Tue, 6 May 2008 23:28:21 +0000 (23:28 +0000)]
jquery core: makeArray was parsing forms into array of elements.

16 years agojquery core: removing needless 'else' and 'new' in $.fn.init.
Ariel Flesler [Tue, 6 May 2008 22:36:30 +0000 (22:36 +0000)]
jquery core: removing needless 'else' and 'new' in $.fn.init.

16 years agojquery ajax: support for dynamic data arguments, see #2806; added test/data/echoQuery...
Jörn Zaefferer [Tue, 6 May 2008 22:21:43 +0000 (22:21 +0000)]
jquery ajax: support for dynamic data arguments, see #2806; added test/data/echoQuery.php for easier testing of sent query strings

16 years agojquery testrunner: reset $.ajaxSettings after each run to prevent sideeffects between...
Jörn Zaefferer [Tue, 6 May 2008 19:39:58 +0000 (19:39 +0000)]
jquery testrunner: reset $.ajaxSettings after each run to prevent sideeffects between tests

16 years agotest runner: translated all the ok() with '==' to equals(), as it gives more informat...
Ariel Flesler [Tue, 6 May 2008 18:56:02 +0000 (18:56 +0000)]
test runner: translated all the ok() with '==' to equals(), as it gives more information on failures.

16 years agojquery core: enhancements to jquery.map, closes #2803
Ariel Flesler [Tue, 6 May 2008 14:54:53 +0000 (14:54 +0000)]
jquery core: enhancements to jquery.map, closes #2803

16 years agojquery core: small code reduction.
Ariel Flesler [Tue, 6 May 2008 01:29:13 +0000 (01:29 +0000)]
jquery core: small code reduction.

16 years agojquery core: code reduction at $.each and $.curCSS.
Ariel Flesler [Tue, 6 May 2008 00:54:59 +0000 (00:54 +0000)]
jquery core: code reduction at $.each and $.curCSS.

16 years agotest runner: adding some tests that were missing for the $ constructor.
Ariel Flesler [Tue, 6 May 2008 00:42:59 +0000 (00:42 +0000)]
test runner: adding some tests that were missing for the $ constructor.

16 years agojquery selector: reverting [5343], check #1960.
Ariel Flesler [Tue, 6 May 2008 00:13:20 +0000 (00:13 +0000)]
jquery selector: reverting [5343], check #1960.

16 years agojquery testrunner: reset global events after each run, speeds up a test run for ajax...
Jörn Zaefferer [Mon, 5 May 2008 23:29:28 +0000 (23:29 +0000)]
jquery testrunner: reset global events after each run, speeds up a test run for ajax from 16s to 10s (test/?ajax), kudos to Ariel

16 years agocore: Fixed #2605: .data() now accepts null as a value.
Scott González [Sat, 3 May 2008 01:51:55 +0000 (01:51 +0000)]
core: Fixed #2605: .data() now accepts null as a value.

16 years agocore: Fixed #2605: .data() now accepts null as a value.
Scott González [Sat, 3 May 2008 01:39:27 +0000 (01:39 +0000)]
core: Fixed #2605: .data() now accepts null as a value.

16 years agocore: Fixed #2600: jQuery.extend no longer skips over null properties.
Scott González [Fri, 2 May 2008 19:49:41 +0000 (19:49 +0000)]
core: Fixed #2600: jQuery.extend no longer skips over null properties.

16 years agojquery fx: adding jQuery.fx.def as default speed for animations
Ariel Flesler [Fri, 2 May 2008 14:12:26 +0000 (14:12 +0000)]
jquery fx: adding jQuery.fx.def as default speed for animations

16 years agojquery selector: removed needless check in jQuery.sibling.
Ariel Flesler [Fri, 2 May 2008 14:03:02 +0000 (14:03 +0000)]
jquery selector: removed needless check in jQuery.sibling.

16 years agojQuery src: set svn:eol-style to native
Scott González [Thu, 1 May 2008 20:54:35 +0000 (20:54 +0000)]
jQuery src: set svn:eol-style to native

16 years agocore: make sure all source files end with a single blank line.
Scott González [Wed, 30 Apr 2008 19:35:17 +0000 (19:35 +0000)]
core: make sure all source files end with a single blank line.

16 years agojquery core: extend() now supports deep + extending jquery itself
Ariel Flesler [Wed, 30 Apr 2008 00:09:55 +0000 (00:09 +0000)]
jquery core: extend() now supports deep + extending jquery itself
cached some vars and it proved to be faster.

16 years agomainly made the code shorter:
Ariel Flesler [Tue, 29 Apr 2008 23:34:50 +0000 (23:34 +0000)]
mainly made the code shorter:
- removed some needless if's
- replace multiple "var x" for one, comma separated declaration.
- added a local fn called now() for the (new Date)s
- fixed the indentation of a block, and a typo in a comment.
- used fn instead of prototype where possible
- jquery fx: exposed the speeds hash as jQuery.fx.speeds.

Also fixed (again) line endings

16 years agocore: Adding missing radix for paresInt.
Scott González [Tue, 29 Apr 2008 23:26:53 +0000 (23:26 +0000)]
core: Adding missing radix for paresInt.

16 years agoFixed line endings.
Scott González [Tue, 29 Apr 2008 22:52:36 +0000 (22:52 +0000)]
Fixed line endings.

16 years agotest runner: adding a test case for $.fn._toggle with more than 2 functions.
Ariel Flesler [Tue, 29 Apr 2008 22:20:02 +0000 (22:20 +0000)]
test runner: adding a test case for $.fn._toggle with more than 2 functions.

16 years agojquery event: from #2249, adding $.event.proxy to link event handlers, and implementi...
Ariel Flesler [Tue, 29 Apr 2008 22:06:54 +0000 (22:06 +0000)]
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.

16 years agojquery event: adding some whitespaces to the last change.
Ariel Flesler [Tue, 29 Apr 2008 21:37:41 +0000 (21:37 +0000)]
jquery event: adding some whitespaces to the last change.

16 years agojquery event: jQuery.toggle can accept more than 2 functions, closes #2378
Ariel Flesler [Tue, 29 Apr 2008 21:35:35 +0000 (21:35 +0000)]
jquery event: jQuery.toggle can accept more than 2 functions, closes #2378

16 years agojquery core: in $.makeArray, improved array-like detection, Safari reports nodelists...
Ariel Flesler [Tue, 29 Apr 2008 20:58:22 +0000 (20:58 +0000)]
jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists as 'function', so I got back to attribute sniffing.

16 years agotest runner: voided the failing tests for jQuery.map, that belong to an unapproved...
Ariel Flesler [Tue, 29 Apr 2008 20:54:30 +0000 (20:54 +0000)]
test runner: voided the failing tests for jQuery.map, that belong to an unapproved proposal(#2616).

16 years agotest runner: added another test for makeArray.
Ariel Flesler [Tue, 29 Apr 2008 20:52:48 +0000 (20:52 +0000)]
test runner: added another test for makeArray.

16 years agoMerged dimensions with core
Brandon Aaron [Tue, 29 Apr 2008 03:26:06 +0000 (03:26 +0000)]
Merged dimensions with core

16 years agojQuery.event.fix performance boost. An example: click event was previously ~3ms and...
Brandon Aaron [Mon, 28 Apr 2008 21:09:27 +0000 (21:09 +0000)]
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.

16 years agojquery core: fix for #1960, delegating to document.getElementsByName for [name=....
Jörn Zaefferer [Mon, 28 Apr 2008 14:11:35 +0000 (14:11 +0000)]
jquery core: fix for #1960, delegating to document.getElementsByName for [name=...] selectors (not in combination with :not)

16 years agojquery core: tests for #2616
Jörn Zaefferer [Mon, 28 Apr 2008 14:00:27 +0000 (14:00 +0000)]
jquery core: tests for #2616

16 years agoPrevent a single event object from being fixed more than once
Brandon Aaron [Sun, 27 Apr 2008 23:08:31 +0000 (23:08 +0000)]
Prevent a single event object from being fixed more than once

16 years agoOptimization for jQuery.event.fix ... don't send fake event through jQuery.event.fix
Brandon Aaron [Sun, 27 Apr 2008 20:37:58 +0000 (20:37 +0000)]
Optimization for jQuery.event.fix ... don't send fake event through jQuery.event.fix

16 years agojquery core: fixed makeArray to recognize the window (has length)
Ariel Flesler [Fri, 25 Apr 2008 03:48:07 +0000 (03:48 +0000)]
jquery core: fixed makeArray to recognize the window (has length)
test runner: updated the tests for makeArray

16 years agojquery core: simplified the code using the new jQuery.makeArray from [5314] where...
Ariel Flesler [Thu, 24 Apr 2008 21:46:22 +0000 (21:46 +0000)]
jquery core: simplified the code using the new jQuery.makeArray from [5314] where possible.

16 years ago- Adding the enhancements to the test runner, to accept multiple(and negative) filter...
Ariel Flesler [Thu, 24 Apr 2008 21:32:35 +0000 (21:32 +0000)]
- Adding the enhancements to the test runner, to accept multiple(and negative) filters from the GET variables, as specified in the ticket #2738.

16 years agojquery core: Patch from #2619 applied, making makeArray more flexible and faster...
Jörn Zaefferer [Thu, 24 Apr 2008 21:23:36 +0000 (21:23 +0000)]
jquery core: Patch from #2619 applied, making makeArray more flexible and faster; removed hint to ticket from (previously failing) test

16 years agotestrunner: refactored url-test-filter, still regex based
Jörn Zaefferer [Thu, 24 Apr 2008 20:08:50 +0000 (20:08 +0000)]
testrunner: refactored url-test-filter, still regex based

16 years agoFixed regression with 5276 where return false in first handler of multiple handlers...
Brandon Aaron [Wed, 23 Apr 2008 18:57:17 +0000 (18:57 +0000)]
Fixed regression with 5276 where return false in first handler of multiple handlers was ignored. And 5276 log message says 200% but I meant 20%.

16 years ago- adding the tests for the changes to $.makeArray, proposed at #2619
Ariel Flesler [Tue, 22 Apr 2008 23:07:35 +0000 (23:07 +0000)]
- adding the tests for the changes to $.makeArray, proposed at #2619

16 years agojquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector to run...
Jörn Zaefferer [Tue, 22 Apr 2008 22:43:18 +0000 (22:43 +0000)]
jquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector to run both core and selector module

16 years agojquery.ajax: fix for beforeSend-cancelling-sideeffects
Jörn Zaefferer [Tue, 22 Apr 2008 22:18:11 +0000 (22:18 +0000)]
jquery.ajax: fix for beforeSend-cancelling-sideeffects

16 years agojquery.ajax: improvement for #2688, added test
Jörn Zaefferer [Tue, 22 Apr 2008 22:07:17 +0000 (22:07 +0000)]
jquery.ajax: improvement for #2688, added test

16 years agojquery.event: Patch for #2708
Jörn Zaefferer [Tue, 22 Apr 2008 21:59:40 +0000 (21:59 +0000)]
jquery.event: Patch for #2708

16 years agoSome small optimizations to the event module. jQuery.event.trigger over 200% faster...
Brandon Aaron [Tue, 22 Apr 2008 05:23:55 +0000 (05:23 +0000)]
Some small optimizations to the event module. jQuery.event.trigger over 200% faster in IE and less code. Thanks in large to Ariel Flesler.

16 years agoSmall optimization to offset (thanks Ariel Flesler)
Brandon Aaron [Mon, 21 Apr 2008 22:54:46 +0000 (22:54 +0000)]
Small optimization to offset (thanks Ariel Flesler)

16 years agoSmall optimization to jQuery.curCSS (thanks Ariel Flesler)
Brandon Aaron [Mon, 21 Apr 2008 22:54:25 +0000 (22:54 +0000)]
Small optimization to jQuery.curCSS (thanks Ariel Flesler)

16 years agoTrigger onclick handlers of links
Brandon Aaron [Mon, 21 Apr 2008 20:39:17 +0000 (20:39 +0000)]
Trigger onclick handlers of links

16 years agoCloses #2688
Yehuda Katz [Mon, 14 Apr 2008 18:16:01 +0000 (18:16 +0000)]
Closes #2688

16 years agoTagging the 1.2.4a release.
John Resig [Thu, 10 Apr 2008 01:17:07 +0000 (01:17 +0000)]
Tagging the 1.2.4a release.

16 years ago$.extend deep now copies children's children, ect...
Sean Catchpole [Tue, 8 Apr 2008 16:40:03 +0000 (16:40 +0000)]
$.extend deep now copies children's children, ect...

16 years agojquery core: updated version pre-1.2.4
Jörn Zaefferer [Mon, 17 Mar 2008 10:53:00 +0000 (10:53 +0000)]
jquery core: updated version pre-1.2.4

16 years agoMade outerHeight/outerWidth accept .outerWidth(true) to include the margin. If any...
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.

16 years agoImported the innerHeight and outerHeight methods from the Dimensions plugin.
John Resig [Sat, 15 Mar 2008 18:53:40 +0000 (18:53 +0000)]
Imported the innerHeight and outerHeight methods from the Dimensions plugin.

16 years agoFixed issue with typeof check - "array" isn't a valid type.
John Resig [Sun, 17 Feb 2008 15:05:55 +0000 (15:05 +0000)]
Fixed issue with typeof check - "array" isn't a valid type.

16 years agoLanded a fix for bug #2037.
John Resig [Wed, 6 Feb 2008 05:18:25 +0000 (05:18 +0000)]
Landed a fix for bug #2037.

16 years agoLanded a minor fix for AIR (in the offset method).
John Resig [Wed, 6 Feb 2008 03:48:22 +0000 (03:48 +0000)]
Landed a minor fix for AIR (in the offset method).

16 years agoTagging the 1.2.3 release.
John Resig [Wed, 6 Feb 2008 01:03:40 +0000 (01:03 +0000)]
Tagging the 1.2.3 release.

16 years agoFixed .unbind('.namespace').
Scott González [Tue, 5 Feb 2008 19:32:00 +0000 (19:32 +0000)]
Fixed .unbind('.namespace').

16 years agoTagging the 1.2.3b release.
John Resig [Sun, 3 Feb 2008 21:46:47 +0000 (21:46 +0000)]
Tagging the 1.2.3b release.

16 years agoYou can now overwrite values returned from .data() with .bind("getData") - returning...
John Resig [Sun, 3 Feb 2008 18:43:04 +0000 (18:43 +0000)]
You can now overwrite values returned from .data() with .bind("getData") - returning a value will override any bound value on that element.

16 years agoTweaked the .data() event triggering - it now triggers a single 'setData' event,...
John Resig [Sun, 3 Feb 2008 17:56:21 +0000 (17:56 +0000)]
Tweaked the .data() event triggering - it now triggers a single 'setData' event, passing in a key value pair of what was changed.

16 years agoAdded support for .unbind(".test") to unbind all namespaced events on an element.
John Resig [Sun, 3 Feb 2008 04:33:11 +0000 (04:33 +0000)]
Added support for .unbind(".test") to unbind all namespaced events on an element.

16 years agoAdded $().data(), $().removeData(), and .bind("click!"). .data() and .removeData...
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).

16 years agoUpdated the years on the licensing.
John Resig [Fri, 1 Feb 2008 23:23:11 +0000 (23:23 +0000)]
Updated the years on the licensing.

16 years agoTagging the 1.2.3a release.
John Resig [Mon, 28 Jan 2008 19:37:46 +0000 (19:37 +0000)]
Tagging the 1.2.3a release.

16 years agoFixed make speed.
John Resig [Mon, 28 Jan 2008 19:32:57 +0000 (19:32 +0000)]
Fixed make speed.

16 years agoDe-eval'd selectors and the various DOM methods (will marginally help our speed and...
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.

16 years agoFix #2184 by using the jQuery.clean() function instead of a direct innerHTML assignme...
David Serduke [Wed, 23 Jan 2008 03:54:23 +0000 (03:54 +0000)]
Fix #2184 by using the jQuery.clean() function instead of a direct innerHTML assignment in the clone() function for IE.

16 years agoglobal replace for @VERSION, fixed #2101
Jörn Zaefferer [Sun, 20 Jan 2008 14:23:22 +0000 (14:23 +0000)]
global replace for @VERSION, fixed #2101

16 years agoFixed #2174 by removing the s.dataType == "json" check for possible cross domain...
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.

16 years agoUpdating version number to 1.2.3-pre
David Serduke [Thu, 17 Jan 2008 21:31:28 +0000 (21:31 +0000)]
Updating version number to 1.2.3-pre

16 years agoTagging the 1.2.2 release.
John Resig [Mon, 14 Jan 2008 22:56:07 +0000 (22:56 +0000)]
Tagging the 1.2.2 release.

16 years agoChanging end of line from CRLF to just LF like the rest of the source files.
David Serduke [Mon, 14 Jan 2008 22:30:48 +0000 (22:30 +0000)]
Changing end of line from CRLF to just LF like the rest of the source files.

16 years agoDiscontinued the test for $(form.elements).
John Resig [Mon, 14 Jan 2008 20:40:05 +0000 (20:40 +0000)]
Discontinued the test for $(form.elements).

16 years agoExcluded a couple Ajax tests from running locally.
John Resig [Mon, 14 Jan 2008 20:17:21 +0000 (20:17 +0000)]
Excluded a couple Ajax tests from running locally.

16 years agoAdded support for breaking in an object loop (Bug #2111).
John Resig [Mon, 14 Jan 2008 20:06:34 +0000 (20:06 +0000)]
Added support for breaking in an object loop (Bug #2111).