John Resig
ba2109136d
Fixed a bug in event - "native" is a reserved word in Safari 2.
2007-09-07 19:28:25 +00:00
John Resig
f96bf10415
Integration of Mike Alsup's excellent form serialization code. The benefits are as follows:
...
- New method: .serializeArray()
This returns an array of name/value pairs representing the contents of a form, or individual input elements.
- Enhancement: .serialize()
The results are correct now (as opposed to the mess from before), and allows you to serializes forms directly (rather than just the input elements).
- Enhancement: .val()
This now returns the correct value when dealing wih selects. Additionally, when dealing with multiple selects, it returns an array of values.
Based upon Mike's code:
http://malsup.com/jquery/form/comp/form.js
and test suite:
http://malsup.com/jquery/form/comp/test.html
2007-09-05 17:06:05 +00:00
John Resig
139393fe09
Removed all inline documentation. The current version of all documentation is stored online, on the wiki: http://docs.jquery.com/
2007-09-04 01:57:35 +00:00
John Resig
456f0fe598
Added namespaced events to bind, unbind, and trigger. This allows you to deal with event handlers of a specific "class" (great for plugins).
2007-09-03 14:53:09 +00:00
John Resig
a5c319f922
Reverted the change that I made in #1320 .
2007-09-02 22:34:18 +00:00
John Resig
5c19701a89
Made it so that you can pass in an event object to the trigger data args and it'll override the custom event object (this way you can pass in the event object of a mousemove to a drag event trigger, for example).
2007-08-30 16:34:34 +00:00
John Resig
042a46386a
Added a new extra fn arg to trigger (so you don't have to simulate the trigger yourself). (Bug #1467 ) Added a new .triggerHandler() method that allows you to NOT trigger native calls AND returns the response from the handlers. (Bug #873 & #1417 )
2007-08-30 05:51:11 +00:00
John Resig
15faf783b9
Made jQuery's internal trigger method return the value from handle. (Bug #1417 )
2007-08-28 04:42:35 +00:00
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
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
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
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
bd78d4f65d
Fixed two cases where []. was used instead of Array.prototype. (Bug #1427 )
2007-08-20 07:08:01 +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
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
78fe70f3e6
More missing semicolons.
2007-08-07 22:25:26 +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
Brandon Aaron
24463a04ce
trigger DOM0 event handlers when doing a trigger ( #1363 )
2007-07-21 01:04:59 +00:00
Brandon Aaron
6c5bfffd20
broken test in IE
2007-07-20 21:53:37 +00:00
Brandon Aaron
f267cfaedf
Fix for #1402
2007-07-20 18:58:38 +00:00
John Resig
9e83f1b65f
Fix for IE firing document ready too soon (Bug #1320 ).
2007-07-12 20:33:05 +00:00
John Resig
54035207fe
Tweaked some of the tests, added in events and fx tests.
2007-07-09 00:15:44 +00:00
John Resig
af329ed00b
Did some minor tidying up.
2007-06-30 13:57:49 +00:00
Brandon Aaron
e290083c35
Fix for #1322
2007-06-29 22:20:02 +00:00
Brandon Aaron
f025ed878b
Fix for #1187 , #1278 and #1279
2007-06-21 19:21:56 +00:00
Brandon Aaron
3c5340d146
Fix for #1185
2007-05-31 04:15:41 +00:00
Brandon Aaron
2c33101693
Fix for #923 , #1136 and #1233
2007-05-31 03:51:28 +00:00
Brandon Aaron
d85a22a70e
Use .one() when doing a .bind() with an "unload" event type ( #1242 )
2007-05-31 00:13:54 +00:00
Brandon Aaron
ee31297a83
Fix event.which ( #1217 )
2007-05-30 19:22:24 +00:00
Brandon Aaron
7e03645a55
Clean up in jQuery.event.add for assigning a handler.guid
2007-05-23 13:51:04 +00:00
Ed Engelhardt
eabac3f6a1
fix style, prefix and typo in a few comments
2007-05-22 07:11:50 +00:00
John Resig
5ef3d5364d
Added support for the event object properties relatedTarget, metaKey, which, and charCode. Fixes bug #1204 .
2007-05-20 16:51:52 +00:00
Brandon Aaron
f5a2db89fd
Clean up in jQuery.event.fix ( #1171 )
2007-05-11 21:39:38 +00:00
Brandon Aaron
c76f6cd125
Fix for #1186
2007-05-11 21:14:11 +00:00
John Resig
74a8e20623
Query now throws no warnings under strict mode in Firefox (ticket #922 ). In fixing this, revision [1771] was discovered and reverted (no API changes are being added in at this time), and a couple un-functioning test cases were fixed (array comparisions were being done for objects).
2007-04-29 18:39:07 +00:00
Brandon Aaron
fba422541a
Fix for #1061
2007-04-26 18:52:10 +00:00
Brandon Aaron
2897b1bd23
unbind handlers with data + test ( #935 )
2007-04-24 22:35:04 +00:00
Brandon Aaron
14aafdf319
!= undefined :)
2007-04-24 21:50:49 +00:00
Brandon Aaron
11b64c1149
Don't pass handler function as data for events + test ( #1140 )
2007-04-24 21:48:52 +00:00
Brandon Aaron
1d2faf36cf
Fix an issue with adding multiple event handlers and reattaching the global event handler in IE
2007-04-22 16:34:23 +00:00
Brandon Aaron
03d2680259
Adding back modified test for #939
2007-04-22 05:13:33 +00:00
Brandon Aaron
e0aa10a664
Fix scope issue in DOM 2 event handlers
2007-04-22 04:17:43 +00:00
Brandon Aaron
2ad223aedd
Use DOM 2 event handlers, do not trigger click on a tags and event.data no longer global
2007-04-22 03:16:53 +00:00
John Resig
d7a8794eb5
Cleaned up a lot of the test suite - reorganized and renamed tests. Added a new triggerEvent() method to the test runner to help us better test actual event interactions.
2007-03-25 18:06:18 +00:00
Jörn Zaefferer
eab0e57fb5
Added test for #815
2007-03-25 12:16:23 +00:00
Jörn Zaefferer
4b9bed9543
Added test for #935
2007-03-25 12:07:59 +00:00
Jörn Zaefferer
4903872c17
Added test for #939
2007-03-25 12:01:15 +00:00
Jörn Zaefferer
a10afee0c3
Added a not-yet-failing testcase for #1054
2007-03-25 10:34:03 +00:00
Jörn Zaefferer
88abf0902a
Added a not-yet-failing testcase for #1054
2007-03-25 10:30:59 +00:00
Brandon Aaron
2b9b3e90c1
Fix generic event handler and $events expando removal for IE
2007-03-05 17:42:12 +00:00