From 877f03b8539c9db1ca9737725aaec58f065ea5b5 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Tue, 13 Jan 2009 00:49:10 +0000 Subject: [PATCH] switched to jQuery 1.3rc2 --- demos/accordion/collapsible.html | 2 +- demos/accordion/custom_icons.html | 2 +- demos/accordion/default.html | 2 +- demos/accordion/fillspace.html | 2 +- demos/accordion/mouseover.html | 2 +- demos/datepicker/alt_field.html | 2 +- demos/datepicker/buttonbar.html | 2 +- demos/datepicker/date_formats.html | 2 +- demos/datepicker/default.html | 2 +- demos/datepicker/dropdown_month_year.html | 2 +- demos/datepicker/icon_trigger.html | 2 +- demos/datepicker/inline.html | 2 +- demos/datepicker/localization.html | 2 +- demos/datepicker/min_max.html | 2 +- demos/datepicker/multiple_calendars.html | 2 +- demos/dialog/default.html | 2 +- demos/dialog/modal.html | 2 +- demos/dialog/modal_confirmation.html | 2 +- demos/dialog/modal_form.html | 2 +- demos/dialog/modal_message.html | 2 +- demos/draggable/axis.html | 2 +- demos/draggable/cancel.html | 2 +- demos/draggable/containment_iframe.html | 2 +- demos/draggable/cursorat.html | 2 +- demos/draggable/default.html | 2 +- demos/draggable/delaydistance.html | 2 +- demos/draggable/events.html | 2 +- demos/draggable/grid.html | 2 +- demos/draggable/handle.html | 2 +- demos/draggable/helper.html | 2 +- demos/draggable/opacity.html | 2 +- demos/draggable/revert.html | 2 +- demos/draggable/scroll.html | 2 +- demos/draggable/snap.html | 2 +- demos/draggable/sortable.html | 2 +- demos/draggable/zindexstack.html | 2 +- demos/droppable/accept.html | 2 +- demos/droppable/activeclass.html | 2 +- demos/droppable/default.html | 2 +- demos/droppable/greedy.html | 2 +- demos/droppable/hoverclass.html | 2 +- demos/droppable/revert.html | 2 +- demos/effects_general/bounce.html | 2 +- demos/effects_general/default.html | 2 +- demos/effects_general/highlight.html | 2 +- demos/effects_general/pulsate.html | 2 +- demos/effects_general/scale.html | 2 +- demos/effects_general/shake.html | 2 +- demos/effects_general/size.html | 2 +- demos/effects_general/transfer.html | 2 +- demos/effects_showhide/blind.html | 2 +- demos/effects_showhide/clip.html | 2 +- demos/effects_showhide/default.html | 2 +- demos/effects_showhide/drop.html | 2 +- demos/effects_showhide/explode.html | 2 +- demos/effects_showhide/fold.html | 2 +- demos/effects_showhide/puff.html | 2 +- demos/effects_showhide/scale.html | 2 +- demos/effects_showhide/slide.html | 2 +- demos/index.html | 2 +- demos/progressbar/default.html | 2 +- demos/progressbar/resize.html | 2 +- demos/resizable/alsoresize.html | 2 +- demos/resizable/animate.html | 2 +- demos/resizable/aspectratio.html | 2 +- demos/resizable/containment.html | 2 +- demos/resizable/default.html | 2 +- demos/resizable/delay.html | 2 +- demos/resizable/distance.html | 2 +- demos/resizable/ghost.html | 2 +- demos/resizable/grid.html | 2 +- demos/resizable/max.html | 2 +- demos/resizable/min.html | 2 +- demos/selectable/default.html | 2 +- demos/selectable/floating.html | 2 +- demos/selectable/serializing.html | 2 +- demos/slider/colorpicker.html | 2 +- demos/slider/default.html | 2 +- demos/slider/multiple_vertical.html | 2 +- demos/slider/range.html | 2 +- demos/slider/range_vertical.html | 2 +- demos/slider/rangemax.html | 2 +- demos/slider/rangemin.html | 2 +- demos/slider/side_scroll.html | 2 +- demos/slider/slider_vertical.html | 2 +- demos/slider/steps.html | 2 +- demos/sortable/connectwith.html | 2 +- demos/sortable/default.html | 2 +- demos/sortable/delay.html | 2 +- demos/sortable/distance.html | 2 +- demos/sortable/droponempty.html | 2 +- demos/sortable/droppable.html | 2 +- demos/sortable/floating.html | 2 +- demos/sortable/items.html | 2 +- demos/sortable/placeholder.html | 2 +- demos/sortable/portlets.html | 2 +- demos/sortable/tolerance.html | 2 +- demos/tabs/ajax.html | 2 +- demos/tabs/collapsible.html | 2 +- demos/tabs/default.html | 2 +- demos/tabs/mouseover.html | 2 +- jquery-1.3pre.js => jquery-1.3rc2.js | 666 ++++++++++++---------- tests/static/accordion.html | 2 +- tests/static/all.html | 2 +- tests/static/datepicker.html | 2 +- tests/static/dialog.html | 2 +- tests/static/highlight_error.html | 2 +- tests/static/icons.html | 2 +- tests/static/overlay.html | 2 +- tests/static/progressbar.html | 2 +- tests/static/slider.html | 2 +- tests/static/tabs.html | 2 +- tests/unit/accordion/accordion.html | 2 +- tests/unit/all/all.html | 2 +- tests/unit/all/all_2.html | 2 +- tests/unit/core/core.html | 2 +- tests/unit/datepicker/datepicker.html | 2 +- tests/unit/dialog/dialog.html | 2 +- tests/unit/draggable/draggable.html | 2 +- tests/unit/droppable/droppable.html | 2 +- tests/unit/progressbar/progressbar.html | 2 +- tests/unit/resizable/resizable.html | 2 +- tests/unit/selectable/selectable.html | 2 +- tests/unit/slider/slider.html | 2 +- tests/unit/sortable/sortable.html | 2 +- tests/unit/tabs/tabs.html | 2 +- tests/visual/accordion.html | 2 +- tests/visual/all.html | 2 +- tests/visual/datepicker.html | 2 +- tests/visual/dialog.html | 2 +- tests/visual/draggable.handle.html | 2 +- tests/visual/draggable.html | 2 +- tests/visual/draggable.scroll.html | 2 +- tests/visual/droppable.html | 2 +- tests/visual/effects.all.html | 2 +- tests/visual/progressbar.html | 2 +- tests/visual/resizable.html | 2 +- tests/visual/selectable.html | 2 +- tests/visual/slider.html | 2 +- tests/visual/sortable.html | 2 +- tests/visual/sortable_massive_scale.html | 2 +- tests/visual/tabs.html | 2 +- 142 files changed, 495 insertions(+), 453 deletions(-) rename jquery-1.3pre.js => jquery-1.3rc2.js (96%) diff --git a/demos/accordion/collapsible.html b/demos/accordion/collapsible.html index 62c495178..00224cb6d 100644 --- a/demos/accordion/collapsible.html +++ b/demos/accordion/collapsible.html @@ -3,7 +3,7 @@ jQuery UI Accordion - Collapsible Demo - + diff --git a/demos/accordion/custom_icons.html b/demos/accordion/custom_icons.html index 929098695..03bb30a4b 100644 --- a/demos/accordion/custom_icons.html +++ b/demos/accordion/custom_icons.html @@ -3,7 +3,7 @@ jQuery UI Accordion - Custom Icon Demo - + diff --git a/demos/accordion/default.html b/demos/accordion/default.html index 5b8c10a6a..2314ed767 100644 --- a/demos/accordion/default.html +++ b/demos/accordion/default.html @@ -3,7 +3,7 @@ jQuery UI Accordion - Default Demo - + diff --git a/demos/accordion/fillspace.html b/demos/accordion/fillspace.html index 2a17b31a9..6ce95c06b 100644 --- a/demos/accordion/fillspace.html +++ b/demos/accordion/fillspace.html @@ -3,7 +3,7 @@ jQuery UI Accordion - FillSpace Demo - + diff --git a/demos/accordion/mouseover.html b/demos/accordion/mouseover.html index f8789dff1..c87dc60e3 100644 --- a/demos/accordion/mouseover.html +++ b/demos/accordion/mouseover.html @@ -3,7 +3,7 @@ jQuery UI Accordion - Mouseover Demo - + diff --git a/demos/datepicker/alt_field.html b/demos/datepicker/alt_field.html index f10cdb075..aa1f7fa61 100644 --- a/demos/datepicker/alt_field.html +++ b/demos/datepicker/alt_field.html @@ -3,7 +3,7 @@ jQuery UI Datepicker - Alternate Field - + diff --git a/demos/datepicker/buttonbar.html b/demos/datepicker/buttonbar.html index b40fb75e1..4f0e6f3e8 100644 --- a/demos/datepicker/buttonbar.html +++ b/demos/datepicker/buttonbar.html @@ -3,7 +3,7 @@ jQuery UI Datepicker - Button bar Demo - + diff --git a/demos/datepicker/date_formats.html b/demos/datepicker/date_formats.html index 8ad295d7b..9d8330aa9 100644 --- a/demos/datepicker/date_formats.html +++ b/demos/datepicker/date_formats.html @@ -3,7 +3,7 @@ jQuery UI Datepicker - Date Formats - + diff --git a/demos/datepicker/default.html b/demos/datepicker/default.html index 273d5c7ed..0f48e6c09 100644 --- a/demos/datepicker/default.html +++ b/demos/datepicker/default.html @@ -3,7 +3,7 @@ jQuery UI Datepicker - Default Demo - + diff --git a/demos/datepicker/dropdown_month_year.html b/demos/datepicker/dropdown_month_year.html index ae0c42531..be6827e6b 100644 --- a/demos/datepicker/dropdown_month_year.html +++ b/demos/datepicker/dropdown_month_year.html @@ -3,7 +3,7 @@ jQuery UI Datepicker - Month & Year Menus Demo - + diff --git a/demos/datepicker/icon_trigger.html b/demos/datepicker/icon_trigger.html index 7055b2fb8..5978337fb 100644 --- a/demos/datepicker/icon_trigger.html +++ b/demos/datepicker/icon_trigger.html @@ -3,7 +3,7 @@ jQuery UI Datepicker - Icon Trigger - + diff --git a/demos/datepicker/inline.html b/demos/datepicker/inline.html index 39efa7dbf..ebdf22123 100644 --- a/demos/datepicker/inline.html +++ b/demos/datepicker/inline.html @@ -3,7 +3,7 @@ jQuery UI Datepicker - Inline Demo - + diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 9b3d4088a..31812d702 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -3,7 +3,7 @@ jQuery UI Datepicker - Localization - + diff --git a/demos/datepicker/min_max.html b/demos/datepicker/min_max.html index 66d16fa3e..36c1ff9dc 100644 --- a/demos/datepicker/min_max.html +++ b/demos/datepicker/min_max.html @@ -3,7 +3,7 @@ jQuery UI Datepicker - Minimum and Maximum - + diff --git a/demos/datepicker/multiple_calendars.html b/demos/datepicker/multiple_calendars.html index c091487c8..fd216416c 100644 --- a/demos/datepicker/multiple_calendars.html +++ b/demos/datepicker/multiple_calendars.html @@ -3,7 +3,7 @@ jQuery UI Datepicker - Multiple Calendars Demo - + diff --git a/demos/dialog/default.html b/demos/dialog/default.html index 2a4359ea0..4b7d49741 100644 --- a/demos/dialog/default.html +++ b/demos/dialog/default.html @@ -3,7 +3,7 @@ jQuery UI Dialog - Default Demo - + diff --git a/demos/dialog/modal.html b/demos/dialog/modal.html index 9627c013d..4ecf7d398 100644 --- a/demos/dialog/modal.html +++ b/demos/dialog/modal.html @@ -3,7 +3,7 @@ jQuery UI Dialog - Modal Demo - + diff --git a/demos/dialog/modal_confirmation.html b/demos/dialog/modal_confirmation.html index 14bae019c..ca81f71d9 100644 --- a/demos/dialog/modal_confirmation.html +++ b/demos/dialog/modal_confirmation.html @@ -3,7 +3,7 @@ jQuery UI Dialog - Modal Confirmation Demo - + diff --git a/demos/dialog/modal_form.html b/demos/dialog/modal_form.html index 455373bc0..0660aed2d 100644 --- a/demos/dialog/modal_form.html +++ b/demos/dialog/modal_form.html @@ -3,7 +3,7 @@ jQuery UI Dialog - Modal Form Demo - + diff --git a/demos/dialog/modal_message.html b/demos/dialog/modal_message.html index 06cc8ec2c..107629fae 100644 --- a/demos/dialog/modal_message.html +++ b/demos/dialog/modal_message.html @@ -3,7 +3,7 @@ jQuery UI Dialog - Modal Message Demo - + diff --git a/demos/draggable/axis.html b/demos/draggable/axis.html index 039da7496..a758d2964 100644 --- a/demos/draggable/axis.html +++ b/demos/draggable/axis.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Axis Demo - + diff --git a/demos/draggable/cancel.html b/demos/draggable/cancel.html index fc5a3c6d7..0414e422e 100644 --- a/demos/draggable/cancel.html +++ b/demos/draggable/cancel.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Cancel Demo - + diff --git a/demos/draggable/containment_iframe.html b/demos/draggable/containment_iframe.html index a5e938873..a49cea359 100644 --- a/demos/draggable/containment_iframe.html +++ b/demos/draggable/containment_iframe.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Containment Demo - + diff --git a/demos/draggable/cursorat.html b/demos/draggable/cursorat.html index 5a6b8b74e..0a7fa1a95 100644 --- a/demos/draggable/cursorat.html +++ b/demos/draggable/cursorat.html @@ -3,7 +3,7 @@ jQuery UI Draggable - cursorAt Demo - + diff --git a/demos/draggable/default.html b/demos/draggable/default.html index b84021ef7..b55d19624 100644 --- a/demos/draggable/default.html +++ b/demos/draggable/default.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Default Demo - + diff --git a/demos/draggable/delaydistance.html b/demos/draggable/delaydistance.html index 18a1699dd..43f6ed076 100644 --- a/demos/draggable/delaydistance.html +++ b/demos/draggable/delaydistance.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Delay / Distance Demo - + diff --git a/demos/draggable/events.html b/demos/draggable/events.html index 82bd3534a..d5d2d7c19 100644 --- a/demos/draggable/events.html +++ b/demos/draggable/events.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Events Demo - + diff --git a/demos/draggable/grid.html b/demos/draggable/grid.html index acb78a847..6da4ccb8b 100644 --- a/demos/draggable/grid.html +++ b/demos/draggable/grid.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Grid Demo - + diff --git a/demos/draggable/handle.html b/demos/draggable/handle.html index 441ad31ad..763784bd0 100644 --- a/demos/draggable/handle.html +++ b/demos/draggable/handle.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Handle Demo - + diff --git a/demos/draggable/helper.html b/demos/draggable/helper.html index 9aa31df4a..afdb4c171 100644 --- a/demos/draggable/helper.html +++ b/demos/draggable/helper.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Helper Demo - + diff --git a/demos/draggable/opacity.html b/demos/draggable/opacity.html index 610023ad6..ef9d69968 100644 --- a/demos/draggable/opacity.html +++ b/demos/draggable/opacity.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Opacity Demo - + diff --git a/demos/draggable/revert.html b/demos/draggable/revert.html index 5b5bc14a8..f8c5d30b2 100644 --- a/demos/draggable/revert.html +++ b/demos/draggable/revert.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Revert Demo - + diff --git a/demos/draggable/scroll.html b/demos/draggable/scroll.html index 83b5c8315..485176adf 100644 --- a/demos/draggable/scroll.html +++ b/demos/draggable/scroll.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Scroll Demo - + diff --git a/demos/draggable/snap.html b/demos/draggable/snap.html index 2aaef47cb..37ce0ce49 100644 --- a/demos/draggable/snap.html +++ b/demos/draggable/snap.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Snap Demo - + diff --git a/demos/draggable/sortable.html b/demos/draggable/sortable.html index 53abb8649..8f7922036 100644 --- a/demos/draggable/sortable.html +++ b/demos/draggable/sortable.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Sortable Demo - + diff --git a/demos/draggable/zindexstack.html b/demos/draggable/zindexstack.html index f98ee1898..bca8b121a 100644 --- a/demos/draggable/zindexstack.html +++ b/demos/draggable/zindexstack.html @@ -3,7 +3,7 @@ jQuery UI Draggable - Z-Index / Stack Demo - + diff --git a/demos/droppable/accept.html b/demos/droppable/accept.html index 101535285..454cdbecd 100644 --- a/demos/droppable/accept.html +++ b/demos/droppable/accept.html @@ -3,7 +3,7 @@ jQuery UI Droppable - Accept Demo - + diff --git a/demos/droppable/activeclass.html b/demos/droppable/activeclass.html index 6f845b3ed..0068361a8 100644 --- a/demos/droppable/activeclass.html +++ b/demos/droppable/activeclass.html @@ -3,7 +3,7 @@ jQuery UI Droppable - activeClass Demo - + diff --git a/demos/droppable/default.html b/demos/droppable/default.html index cb9bf1cab..a1806c4ab 100644 --- a/demos/droppable/default.html +++ b/demos/droppable/default.html @@ -3,7 +3,7 @@ jQuery UI Droppable - Default Demo - + diff --git a/demos/droppable/greedy.html b/demos/droppable/greedy.html index 2abfc5f3c..11a537200 100644 --- a/demos/droppable/greedy.html +++ b/demos/droppable/greedy.html @@ -3,7 +3,7 @@ jQuery UI Droppable - Greedy Demo - + diff --git a/demos/droppable/hoverclass.html b/demos/droppable/hoverclass.html index bb46f07ec..c19a99e5f 100644 --- a/demos/droppable/hoverclass.html +++ b/demos/droppable/hoverclass.html @@ -3,7 +3,7 @@ jQuery UI Droppable - hoverClass Demo - + diff --git a/demos/droppable/revert.html b/demos/droppable/revert.html index 8665b2557..fc11f3b04 100644 --- a/demos/droppable/revert.html +++ b/demos/droppable/revert.html @@ -3,7 +3,7 @@ jQuery UI Droppable - Revert Demo - + diff --git a/demos/effects_general/bounce.html b/demos/effects_general/bounce.html index 3598e637f..7d5ba6a23 100644 --- a/demos/effects_general/bounce.html +++ b/demos/effects_general/bounce.html @@ -3,7 +3,7 @@ jQuery UI Effects - Bounce Demo - + diff --git a/demos/effects_general/default.html b/demos/effects_general/default.html index 3598e637f..7d5ba6a23 100644 --- a/demos/effects_general/default.html +++ b/demos/effects_general/default.html @@ -3,7 +3,7 @@ jQuery UI Effects - Bounce Demo - + diff --git a/demos/effects_general/highlight.html b/demos/effects_general/highlight.html index f59e340e2..d52d25ee9 100644 --- a/demos/effects_general/highlight.html +++ b/demos/effects_general/highlight.html @@ -3,7 +3,7 @@ jQuery UI Effects - Highlight Demo - + diff --git a/demos/effects_general/pulsate.html b/demos/effects_general/pulsate.html index 69ae549a9..3774e0882 100644 --- a/demos/effects_general/pulsate.html +++ b/demos/effects_general/pulsate.html @@ -3,7 +3,7 @@ jQuery UI Effects - Pulsate Demo - + diff --git a/demos/effects_general/scale.html b/demos/effects_general/scale.html index e0bff37bf..56e4261cd 100644 --- a/demos/effects_general/scale.html +++ b/demos/effects_general/scale.html @@ -3,7 +3,7 @@ jQuery UI Effects - Scale Demo - + diff --git a/demos/effects_general/shake.html b/demos/effects_general/shake.html index 47b803e29..ee27289d6 100644 --- a/demos/effects_general/shake.html +++ b/demos/effects_general/shake.html @@ -3,7 +3,7 @@ jQuery UI Effects - Shake Demo - + diff --git a/demos/effects_general/size.html b/demos/effects_general/size.html index f5423061b..dd419a2fa 100644 --- a/demos/effects_general/size.html +++ b/demos/effects_general/size.html @@ -3,7 +3,7 @@ jQuery UI Effects - Size Demo - + diff --git a/demos/effects_general/transfer.html b/demos/effects_general/transfer.html index 0d844da0a..e077b6e54 100644 --- a/demos/effects_general/transfer.html +++ b/demos/effects_general/transfer.html @@ -3,7 +3,7 @@ jQuery UI Effects - Transfer Demo - + diff --git a/demos/effects_showhide/blind.html b/demos/effects_showhide/blind.html index ded453ee6..a5020e540 100644 --- a/demos/effects_showhide/blind.html +++ b/demos/effects_showhide/blind.html @@ -3,7 +3,7 @@ jQuery UI Effects - Blind Demo - + diff --git a/demos/effects_showhide/clip.html b/demos/effects_showhide/clip.html index 1aa7e1cac..1fea53a68 100644 --- a/demos/effects_showhide/clip.html +++ b/demos/effects_showhide/clip.html @@ -3,7 +3,7 @@ jQuery UI Effects - Clip Demo - + diff --git a/demos/effects_showhide/default.html b/demos/effects_showhide/default.html index ded453ee6..a5020e540 100644 --- a/demos/effects_showhide/default.html +++ b/demos/effects_showhide/default.html @@ -3,7 +3,7 @@ jQuery UI Effects - Blind Demo - + diff --git a/demos/effects_showhide/drop.html b/demos/effects_showhide/drop.html index c046abc05..476deaafb 100644 --- a/demos/effects_showhide/drop.html +++ b/demos/effects_showhide/drop.html @@ -3,7 +3,7 @@ jQuery UI Effects - Drop Demo - + diff --git a/demos/effects_showhide/explode.html b/demos/effects_showhide/explode.html index 806c2bb92..67b7942ea 100644 --- a/demos/effects_showhide/explode.html +++ b/demos/effects_showhide/explode.html @@ -3,7 +3,7 @@ jQuery UI Effects - Explode Demo - + diff --git a/demos/effects_showhide/fold.html b/demos/effects_showhide/fold.html index ef9cffaa0..7b886b62c 100644 --- a/demos/effects_showhide/fold.html +++ b/demos/effects_showhide/fold.html @@ -3,7 +3,7 @@ jQuery UI Effects - Fold Demo - + diff --git a/demos/effects_showhide/puff.html b/demos/effects_showhide/puff.html index edd098ca8..e1f24067f 100644 --- a/demos/effects_showhide/puff.html +++ b/demos/effects_showhide/puff.html @@ -3,7 +3,7 @@ jQuery UI Effects - Puff Demo - + diff --git a/demos/effects_showhide/scale.html b/demos/effects_showhide/scale.html index b4c35507a..68426ed9b 100644 --- a/demos/effects_showhide/scale.html +++ b/demos/effects_showhide/scale.html @@ -3,7 +3,7 @@ jQuery UI Effects - Scale Demo - + diff --git a/demos/effects_showhide/slide.html b/demos/effects_showhide/slide.html index 15484e3d7..15a9e1738 100644 --- a/demos/effects_showhide/slide.html +++ b/demos/effects_showhide/slide.html @@ -3,7 +3,7 @@ jQuery UI Effects - Slide Demo - + diff --git a/demos/index.html b/demos/index.html index a03aac0c1..2089a3fb1 100644 --- a/demos/index.html +++ b/demos/index.html @@ -7,7 +7,7 @@ - + diff --git a/demos/progressbar/default.html b/demos/progressbar/default.html index 89dc24c34..70cdbaf48 100644 --- a/demos/progressbar/default.html +++ b/demos/progressbar/default.html @@ -3,7 +3,7 @@ jQuery UI Progressbar - Default Demo - + diff --git a/demos/progressbar/resize.html b/demos/progressbar/resize.html index 540bd14c9..6cd7b29da 100644 --- a/demos/progressbar/resize.html +++ b/demos/progressbar/resize.html @@ -3,7 +3,7 @@ jQuery UI Progressbar - Resize Demo - + diff --git a/demos/resizable/alsoresize.html b/demos/resizable/alsoresize.html index a2db5b166..19b27c7fc 100644 --- a/demos/resizable/alsoresize.html +++ b/demos/resizable/alsoresize.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Also Resize Demo - + diff --git a/demos/resizable/animate.html b/demos/resizable/animate.html index 999036d3a..f448a8d1a 100644 --- a/demos/resizable/animate.html +++ b/demos/resizable/animate.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Animate Demo - + diff --git a/demos/resizable/aspectratio.html b/demos/resizable/aspectratio.html index dc5c023d2..2263eeb56 100644 --- a/demos/resizable/aspectratio.html +++ b/demos/resizable/aspectratio.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Aspect Ratio Demo - + diff --git a/demos/resizable/containment.html b/demos/resizable/containment.html index f9e034fc7..6ecdf03f4 100644 --- a/demos/resizable/containment.html +++ b/demos/resizable/containment.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Containment Demo - + diff --git a/demos/resizable/default.html b/demos/resizable/default.html index 44ba5866c..0b1c4c0c6 100644 --- a/demos/resizable/default.html +++ b/demos/resizable/default.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Default Demo - + diff --git a/demos/resizable/delay.html b/demos/resizable/delay.html index 6b23ea507..4f6d04319 100644 --- a/demos/resizable/delay.html +++ b/demos/resizable/delay.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Delay Demo - + diff --git a/demos/resizable/distance.html b/demos/resizable/distance.html index 8b8122134..ec951bf73 100644 --- a/demos/resizable/distance.html +++ b/demos/resizable/distance.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Distance Demo - + diff --git a/demos/resizable/ghost.html b/demos/resizable/ghost.html index d2d7c0173..20f82d5c9 100644 --- a/demos/resizable/ghost.html +++ b/demos/resizable/ghost.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Ghost Demo - + diff --git a/demos/resizable/grid.html b/demos/resizable/grid.html index ed70be9cd..6c2f573aa 100644 --- a/demos/resizable/grid.html +++ b/demos/resizable/grid.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Grid Demo - + diff --git a/demos/resizable/max.html b/demos/resizable/max.html index 498b7f6b3..511ed3d96 100644 --- a/demos/resizable/max.html +++ b/demos/resizable/max.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Max Height / Width Demo - + diff --git a/demos/resizable/min.html b/demos/resizable/min.html index 33e86621d..d8253e2b2 100644 --- a/demos/resizable/min.html +++ b/demos/resizable/min.html @@ -3,7 +3,7 @@ jQuery UI Resizable - Min Height / Width Demo - + diff --git a/demos/selectable/default.html b/demos/selectable/default.html index e8dbdca79..cb7f8c57d 100644 --- a/demos/selectable/default.html +++ b/demos/selectable/default.html @@ -3,7 +3,7 @@ jQuery UI Selectable - Default Demo - + diff --git a/demos/selectable/floating.html b/demos/selectable/floating.html index ecb31a4c3..eeb617c6c 100644 --- a/demos/selectable/floating.html +++ b/demos/selectable/floating.html @@ -3,7 +3,7 @@ jQuery UI Selectable - Floating Demo - + diff --git a/demos/selectable/serializing.html b/demos/selectable/serializing.html index 524f22191..50a78d893 100644 --- a/demos/selectable/serializing.html +++ b/demos/selectable/serializing.html @@ -3,7 +3,7 @@ jQuery UI Selectable - Serializing Demo - + diff --git a/demos/slider/colorpicker.html b/demos/slider/colorpicker.html index 424c9d0af..0a8bef448 100644 --- a/demos/slider/colorpicker.html +++ b/demos/slider/colorpicker.html @@ -3,7 +3,7 @@ jQuery UI Slider - Colorpicker Demo - + diff --git a/demos/slider/default.html b/demos/slider/default.html index d38a86598..9eed4eccd 100644 --- a/demos/slider/default.html +++ b/demos/slider/default.html @@ -3,7 +3,7 @@ jQuery UI Slider - Default Demo - + diff --git a/demos/slider/multiple_vertical.html b/demos/slider/multiple_vertical.html index c59620d04..fe9edf95a 100644 --- a/demos/slider/multiple_vertical.html +++ b/demos/slider/multiple_vertical.html @@ -3,7 +3,7 @@ jQuery UI Slider - Multiple Vertical Sliders Demo - + diff --git a/demos/slider/range.html b/demos/slider/range.html index d990320d9..9884edfe4 100644 --- a/demos/slider/range.html +++ b/demos/slider/range.html @@ -3,7 +3,7 @@ jQuery UI Slider - Range Demo - + diff --git a/demos/slider/range_vertical.html b/demos/slider/range_vertical.html index 0a4a5d35b..3365dfaca 100644 --- a/demos/slider/range_vertical.html +++ b/demos/slider/range_vertical.html @@ -3,7 +3,7 @@ jQuery UI Slider - Vertical Range Demo - + diff --git a/demos/slider/rangemax.html b/demos/slider/rangemax.html index f8d302b27..53c64ee19 100644 --- a/demos/slider/rangemax.html +++ b/demos/slider/rangemax.html @@ -3,7 +3,7 @@ jQuery UI Slider - Range Max Demo - + diff --git a/demos/slider/rangemin.html b/demos/slider/rangemin.html index 4f3f3c6b5..599f5dcb1 100644 --- a/demos/slider/rangemin.html +++ b/demos/slider/rangemin.html @@ -3,7 +3,7 @@ jQuery UI Slider - Range Min Demo - + diff --git a/demos/slider/side_scroll.html b/demos/slider/side_scroll.html index ec962c650..ffc4cb759 100644 --- a/demos/slider/side_scroll.html +++ b/demos/slider/side_scroll.html @@ -3,7 +3,7 @@ jQuery UI Slider - Default Demo - + diff --git a/demos/slider/slider_vertical.html b/demos/slider/slider_vertical.html index 9a665247c..d7ee2c2a1 100644 --- a/demos/slider/slider_vertical.html +++ b/demos/slider/slider_vertical.html @@ -3,7 +3,7 @@ jQuery UI Slider - Vertical Single Slider Demo - + diff --git a/demos/slider/steps.html b/demos/slider/steps.html index 6f1c20fbf..4d6085d07 100644 --- a/demos/slider/steps.html +++ b/demos/slider/steps.html @@ -3,7 +3,7 @@ jQuery UI Slider - Steps Demo - + diff --git a/demos/sortable/connectwith.html b/demos/sortable/connectwith.html index b1752d3c2..6ca1b99e9 100644 --- a/demos/sortable/connectwith.html +++ b/demos/sortable/connectwith.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Connecting Two Lists Demo - + diff --git a/demos/sortable/default.html b/demos/sortable/default.html index 820cd3067..f370a77d8 100644 --- a/demos/sortable/default.html +++ b/demos/sortable/default.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Default Demo - + diff --git a/demos/sortable/delay.html b/demos/sortable/delay.html index dc517e206..9aed8aae9 100644 --- a/demos/sortable/delay.html +++ b/demos/sortable/delay.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Delay / Distance Demo - + diff --git a/demos/sortable/distance.html b/demos/sortable/distance.html index 7227fd2a7..bff0f7bd3 100644 --- a/demos/sortable/distance.html +++ b/demos/sortable/distance.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Delay / Distance Demo - + diff --git a/demos/sortable/droponempty.html b/demos/sortable/droponempty.html index 0ae54c634..bf31e7af0 100644 --- a/demos/sortable/droponempty.html +++ b/demos/sortable/droponempty.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Dropping on Empty Lists Demo - + diff --git a/demos/sortable/droppable.html b/demos/sortable/droppable.html index 037de6262..32a78fa51 100644 --- a/demos/sortable/droppable.html +++ b/demos/sortable/droppable.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Connect to Droppables Demo - + diff --git a/demos/sortable/floating.html b/demos/sortable/floating.html index da8473970..d7846ccb0 100644 --- a/demos/sortable/floating.html +++ b/demos/sortable/floating.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Floating Demo - + diff --git a/demos/sortable/items.html b/demos/sortable/items.html index 2bd78cb61..558f72c40 100644 --- a/demos/sortable/items.html +++ b/demos/sortable/items.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Excluding Items Demo - + diff --git a/demos/sortable/placeholder.html b/demos/sortable/placeholder.html index 74ded00ef..d63eee4ea 100644 --- a/demos/sortable/placeholder.html +++ b/demos/sortable/placeholder.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Placeholder Demo - + diff --git a/demos/sortable/portlets.html b/demos/sortable/portlets.html index c4af6d1d0..3846172d3 100644 --- a/demos/sortable/portlets.html +++ b/demos/sortable/portlets.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Portlets Demo - + diff --git a/demos/sortable/tolerance.html b/demos/sortable/tolerance.html index 256b56d86..ad45a5e2a 100644 --- a/demos/sortable/tolerance.html +++ b/demos/sortable/tolerance.html @@ -3,7 +3,7 @@ jQuery UI Sortable - Tolerance Demo - + diff --git a/demos/tabs/ajax.html b/demos/tabs/ajax.html index 0fe8a4dae..09d7293b9 100644 --- a/demos/tabs/ajax.html +++ b/demos/tabs/ajax.html @@ -3,7 +3,7 @@ jQuery UI Tabs - Ajax Demo - + diff --git a/demos/tabs/collapsible.html b/demos/tabs/collapsible.html index d1e45e2fe..3e06e6708 100644 --- a/demos/tabs/collapsible.html +++ b/demos/tabs/collapsible.html @@ -3,7 +3,7 @@ jQuery UI Tabs - Collapsible Demo - + diff --git a/demos/tabs/default.html b/demos/tabs/default.html index 16d4d77b0..f16ea1546 100644 --- a/demos/tabs/default.html +++ b/demos/tabs/default.html @@ -3,7 +3,7 @@ jQuery UI Tabs - Default Demo - + diff --git a/demos/tabs/mouseover.html b/demos/tabs/mouseover.html index faaaf83c9..6b3e6378a 100644 --- a/demos/tabs/mouseover.html +++ b/demos/tabs/mouseover.html @@ -3,7 +3,7 @@ jQuery UI Tabs - Mouseover Demo - + diff --git a/jquery-1.3pre.js b/jquery-1.3rc2.js similarity index 96% rename from jquery-1.3pre.js rename to jquery-1.3rc2.js index d60e14ba1..128b6d3c7 100644 --- a/jquery-1.3pre.js +++ b/jquery-1.3rc2.js @@ -1,13 +1,13 @@ /*! - * jQuery JavaScript Library v1.3b2 + * jQuery JavaScript Library v1.3rc2 * http://jquery.com/ * * Copyright (c) 2009 John Resig * Dual licensed under the MIT and GPL licenses. * http://docs.jquery.com/License * - * Date: - * Revision: 6065 + * Date: 2009-01-12 19:11:21 -0500 (Mon, 12 Jan 2009) + * Revision: 6100 */ (function(){ @@ -86,6 +86,12 @@ jQuery.fn = jQuery.prototype = { } else if ( jQuery.isFunction( selector ) ) return jQuery( document ).ready( selector ); + // Make sure that old selector state is passed along + if ( selector.selector && selector.context ) { + this.selector = selector.selector; + this.context = selector.context; + } + return this.setArray(jQuery.makeArray(selector)); }, @@ -93,7 +99,7 @@ jQuery.fn = jQuery.prototype = { selector: "", // The current version of jQuery being used - jquery: "1.3b2", + jquery: "1.3rc2", // The number of elements contained in the matched element set size: function() { @@ -213,20 +219,22 @@ jQuery.fn = jQuery.prototype = { }, wrapAll: function( html ) { - if ( this[0] ) + if ( this[0] ) { // The elements to wrap the target around - jQuery( html, this[0].ownerDocument ) - .clone() - .insertBefore( this[0] ) - .map(function(){ - var elem = this; + var wrap = jQuery( html, this[0].ownerDocument ).clone(); - while ( elem.firstChild ) - elem = elem.firstChild; + if ( this[0].parentNode ) + wrap.insertBefore( this[0] ); - return elem; - }) - .append(this); + wrap.map(function(){ + var elem = this; + + while ( elem.firstChild ) + elem = elem.firstChild; + + return elem; + }).append(this); + } return this; }, @@ -273,6 +281,8 @@ jQuery.fn = jQuery.prototype = { return this.prevObject || jQuery( [] ); }, + // For internal use only. + // Behaves like an Array's .push method, not like a jQuery method. push: [].push, find: function( selector ) { @@ -349,10 +359,12 @@ jQuery.fn = jQuery.prototype = { }, closest: function( selector ) { + var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null; + return this.map(function(){ var cur = this; while ( cur && cur.ownerDocument ) { - if ( jQuery(cur).is(selector) ) + if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) return cur; cur = cur.parentNode; } @@ -928,8 +940,8 @@ jQuery.extend({ if ( fragment ) { for ( var i = 0; ret[i]; i++ ) { - if ( jQuery.nodeName( ret[i], "script" ) ) { - scripts.push( ret[i].parentNode.removeChild( ret[i] ) ); + if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) { + scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] ); } else { if ( ret[i].nodeType === 1 ) ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) ); @@ -964,7 +976,7 @@ jQuery.extend({ // Safari mis-reports the default selected property of a hidden option // Accessing the parent's selectedIndex property fixes it - if ( name == "selected" ) + if ( name == "selected" && elem.parentNode ) elem.parentNode.selectedIndex; // If applicable, access the attribute via the DOM 0 way @@ -1151,9 +1163,6 @@ jQuery.browser = { mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent ) }; -// Check to see if the W3C box model is being used -jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat"; - jQuery.each({ parent: function(elem){return elem.parentNode;}, parents: function(elem){return jQuery.dir(elem,"parentNode");}, @@ -1243,264 +1252,163 @@ jQuery.each({ function num(elem, prop) { return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0; } -var expando = "jQuery" + now(), uuid = 0, windowData = {}; - -jQuery.extend({ - cache: {}, - - data: function( elem, name, data ) { - elem = elem == window ? - windowData : - elem; - - var id = elem[ expando ]; - - // Compute a unique ID for the element - if ( !id ) - id = elem[ expando ] = ++uuid; - - // Only generate the data cache if we're - // trying to access or manipulate it - if ( name && !jQuery.cache[ id ] ) - jQuery.cache[ id ] = {}; - - // Prevent overriding the named cache with undefined values - if ( data !== undefined ) - jQuery.cache[ id ][ name ] = data; - - // Return the named cache data, or the ID for the element - return name ? - jQuery.cache[ id ][ name ] : - id; - }, - - removeData: function( elem, name ) { - elem = elem == window ? - windowData : - elem; - - var id = elem[ expando ]; - - // If we want to remove a specific section of the element's data - if ( name ) { - if ( jQuery.cache[ id ] ) { - // Remove the section of cache data - delete jQuery.cache[ id ][ name ]; - - // If we've removed all the data, remove the element's cache - name = ""; - - for ( name in jQuery.cache[ id ] ) - break; - - if ( !name ) - jQuery.removeData( elem ); - } - - // Otherwise, we want to remove all of the element's data - } else { - // Clean up the element expando - try { - delete elem[ expando ]; - } catch(e){ - // IE has trouble directly removing the expando - // but it's ok with using removeAttribute - if ( elem.removeAttribute ) - elem.removeAttribute( expando ); - } - - // Completely remove the data cache - delete jQuery.cache[ id ]; - } - }, - queue: function( elem, type, data ) { - if ( elem ){ - - type = (type || "fx") + "queue"; - - var q = jQuery.data( elem, type ); - - if ( !q || jQuery.isArray(data) ) - q = jQuery.data( elem, type, jQuery.makeArray(data) ); - else if( data ) - q.push( data ); - - } - return q; - }, - - dequeue: function( elem, type ){ - var queue = jQuery.queue( elem, type ), - fn = queue.shift(); - - if( !type || type === "fx" ) - fn = queue[0]; - - if( fn !== undefined ) - fn.call(elem); - } -}); - -jQuery.fn.extend({ - data: function( key, value ){ - var parts = key.split("."); - parts[1] = parts[1] ? "." + parts[1] : ""; - - if ( value === undefined ) { - var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); - - if ( data === undefined && this.length ) - data = jQuery.data( this[0], key ); - - return data === undefined && parts[1] ? - this.data( parts[0] ) : - data; - } else - return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){ - jQuery.data( this, key, value ); - }); - }, - - removeData: function( key ){ - return this.each(function(){ - jQuery.removeData( this, key ); - }); - }, - queue: function(type, data){ - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - } - - if ( data === undefined ) - return jQuery.queue( this[0], type ); - - return this.each(function(){ - var queue = jQuery.queue( this, type, data ); - - if( type == "fx" && queue.length == 1 ) - queue[0].call(this); - }); - }, - dequeue: function(type){ - return this.each(function(){ - jQuery.dequeue( this, type ); - }); - } -});(function(){ - - jQuery.support = {}; - - var root = document.documentElement, - script = document.createElement("script"), - div = document.createElement("div"), - id = "script" + (new Date).getTime(); - - div.style.display = "none"; - div.innerHTML = '
a'; - - var all = div.getElementsByTagName("*"), - a = div.getElementsByTagName("a")[0]; - - // Can't get basic test support - if ( !all || !all.length || !a ) { - return; - } - - jQuery.support = { - // IE strips leading whitespace when .innerHTML is used - leadingWhitespace: div.firstChild.nodeType == 3, - - // Make sure that tbody elements aren't automatically inserted - // IE will insert them into empty tables - tbody: !div.getElementsByTagName("tbody").length, - - // Make sure that you can get all elements in an element - // IE 7 always returns no results - objectAll: !!div.getElementsByTagName("object")[0] - .getElementsByTagName("*").length, - - // Make sure that link elements get serialized correctly by innerHTML - // This requires a wrapper element in IE - htmlSerialize: !!div.getElementsByTagName("link").length, - - // Get the style information from getAttribute - // (IE uses .cssText insted) - style: /red/.test( a.getAttribute("style") ), - - // Make sure that URLs aren't manipulated - // (IE normalizes it by default) - hrefNormalized: a.getAttribute("href") === "/a", - - // Make sure that element opacity exists - // (IE uses filter instead) - opacity: a.style.opacity === "0.5", - - // Verify style float existence - // (IE uses styleFloat instead of cssFloat) - cssFloat: !!a.style.cssFloat, - - // Will be defined later - scriptEval: false, - noCloneEvent: true - }; - - script.type = "text/javascript"; - try { - script.appendChild( document.createTextNode( "window." + id + "=1;" ) ); - } catch(e){} - - root.insertBefore( script, root.firstChild ); - - // Make sure that the execution of code works by injecting a script - // tag with appendChild/createTextNode - // (IE doesn't support this, fails, and uses .text instead) - if ( window[ id ] ) { - jQuery.support.scriptEval = true; - delete window[ id ]; - } - - root.removeChild( script ); - - if ( div.attachEvent && div.fireEvent ) { - div.attachEvent("onclick", function(){ - // Cloning a node shouldn't copy over any - // bound event handlers (IE does this) - jQuery.support.noCloneEvent = false; - div.detachEvent("onclick", arguments.callee); - }); - div.cloneNode(true).fireEvent("onclick"); - } - -})(); - -var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat"; - -jQuery.props = { - "for": "htmlFor", - "class": "className", - "float": styleFloat, - cssFloat: styleFloat, - styleFloat: styleFloat, - readonly: "readOnly", - maxlength: "maxLength", - cellspacing: "cellSpacing", - rowspan: "rowSpan", - tabindex: "tabIndex" -}; -/* - * Sizzle CSS Selector Engine - v0.9 - * Copyright 2009, John Resig (http://ejohn.org/) - * released under the MIT License +var expando = "jQuery" + now(), uuid = 0, windowData = {}; + +jQuery.extend({ + cache: {}, + + data: function( elem, name, data ) { + elem = elem == window ? + windowData : + elem; + + var id = elem[ expando ]; + + // Compute a unique ID for the element + if ( !id ) + id = elem[ expando ] = ++uuid; + + // Only generate the data cache if we're + // trying to access or manipulate it + if ( name && !jQuery.cache[ id ] ) + jQuery.cache[ id ] = {}; + + // Prevent overriding the named cache with undefined values + if ( data !== undefined ) + jQuery.cache[ id ][ name ] = data; + + // Return the named cache data, or the ID for the element + return name ? + jQuery.cache[ id ][ name ] : + id; + }, + + removeData: function( elem, name ) { + elem = elem == window ? + windowData : + elem; + + var id = elem[ expando ]; + + // If we want to remove a specific section of the element's data + if ( name ) { + if ( jQuery.cache[ id ] ) { + // Remove the section of cache data + delete jQuery.cache[ id ][ name ]; + + // If we've removed all the data, remove the element's cache + name = ""; + + for ( name in jQuery.cache[ id ] ) + break; + + if ( !name ) + jQuery.removeData( elem ); + } + + // Otherwise, we want to remove all of the element's data + } else { + // Clean up the element expando + try { + delete elem[ expando ]; + } catch(e){ + // IE has trouble directly removing the expando + // but it's ok with using removeAttribute + if ( elem.removeAttribute ) + elem.removeAttribute( expando ); + } + + // Completely remove the data cache + delete jQuery.cache[ id ]; + } + }, + queue: function( elem, type, data ) { + if ( elem ){ + + type = (type || "fx") + "queue"; + + var q = jQuery.data( elem, type ); + + if ( !q || jQuery.isArray(data) ) + q = jQuery.data( elem, type, jQuery.makeArray(data) ); + else if( data ) + q.push( data ); + + } + return q; + }, + + dequeue: function( elem, type ){ + var queue = jQuery.queue( elem, type ), + fn = queue.shift(); + + if( !type || type === "fx" ) + fn = queue[0]; + + if( fn !== undefined ) + fn.call(elem); + } +}); + +jQuery.fn.extend({ + data: function( key, value ){ + var parts = key.split("."); + parts[1] = parts[1] ? "." + parts[1] : ""; + + if ( value === undefined ) { + var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); + + if ( data === undefined && this.length ) + data = jQuery.data( this[0], key ); + + return data === undefined && parts[1] ? + this.data( parts[0] ) : + data; + } else + return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){ + jQuery.data( this, key, value ); + }); + }, + + removeData: function( key ){ + return this.each(function(){ + jQuery.removeData( this, key ); + }); + }, + queue: function(type, data){ + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + } + + if ( data === undefined ) + return jQuery.queue( this[0], type ); + + return this.each(function(){ + var queue = jQuery.queue( this, type, data ); + + if( type == "fx" && queue.length == 1 ) + queue[0].call(this); + }); + }, + dequeue: function(type){ + return this.each(function(){ + jQuery.dequeue( this, type ); + }); + } +});/*! + * Sizzle CSS Selector Engine - v0.9.1 + * Copyright 2009, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * More information: http://sizzlejs.com/ */ (function(){ -var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|[^[\]]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g; - -var done = 0; +var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|[^[\]]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g, + done = 0, + toString = Object.prototype.toString; var Sizzle = function(selector, context, results, seed) { - var doCache = !results; results = results || []; context = context || document; @@ -1580,7 +1488,7 @@ var Sizzle = function(selector, context, results, seed) { pop = context; } - Expr.relative[ cur ]( checkSet, pop ); + Expr.relative[ cur ]( checkSet, pop, isXML(context) ); } } @@ -1592,7 +1500,7 @@ var Sizzle = function(selector, context, results, seed) { throw "Syntax error, unrecognized expression: " + (cur || selector); } - if ( checkSet instanceof Array ) { + if ( toString.call(checkSet) === "[object Array]" ) { if ( !prune ) { results.push.apply( results, checkSet ); } else if ( context.nodeType === 1 ) { @@ -1672,6 +1580,8 @@ Sizzle.filter = function(expr, set, inplace, not){ if ( !match ) { anyFound = found = true; + } else if ( match === true ) { + continue; } else if ( match[0] === true ) { goodArray = []; var last = null, elem; @@ -1744,17 +1654,18 @@ Sizzle.filter = function(expr, set, inplace, not){ var Expr = Sizzle.selectors = { order: [ "ID", "NAME", "TAG" ], match: { - ID: /#((?:[\w\u0128-\uFFFF_-]|\\.)+)/, - CLASS: /\.((?:[\w\u0128-\uFFFF_-]|\\.)+)/, - NAME: /\[name=['"]*((?:[\w\u0128-\uFFFF_-]|\\.)+)['"]*\]/, - ATTR: /\[((?:[\w\u0128-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\]/, - TAG: /^((?:[\w\u0128-\uFFFF\*_-]|\\.)+)/, - CHILD: /:(only|nth|last|first)-child\(?(even|odd|[\dn+-]*)\)?/, - POS: /:(nth|eq|gt|lt|first|last|even|odd)\(?(\d*)\)?(?:[^-]|$)/, - PSEUDO: /:((?:[\w\u0128-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/ + ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, + CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, + NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/, + ATTR: /\[((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\]/, + TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/, + CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, + POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/, + PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/ }, attrMap: { - "class": "className" + "class": "className", + "for": "htmlFor" }, relative: { "+": function(checkSet, part){ @@ -1775,9 +1686,9 @@ var Expr = Sizzle.selectors = { Sizzle.filter( part, checkSet, true ); } }, - ">": function(checkSet, part){ + ">": function(checkSet, part, isXML){ if ( typeof part === "string" && !/\W/.test(part) ) { - part = part.toUpperCase(); + part = isXML ? part : part.toUpperCase(); for ( var i = 0, l = checkSet.length; i < l; i++ ) { var elem = checkSet[i]; @@ -1801,21 +1712,21 @@ var Expr = Sizzle.selectors = { } } }, - "": function(checkSet, part){ + "": function(checkSet, part, isXML){ var doneName = "done" + (done++), checkFn = dirCheck; if ( !part.match(/\W/) ) { - var nodeCheck = part = part.toUpperCase(); + var nodeCheck = part = isXML ? part : part.toUpperCase(); checkFn = dirNodeCheck; } checkFn("parentNode", part, doneName, checkSet, nodeCheck); }, - "~": function(checkSet, part){ + "~": function(checkSet, part, isXML){ var doneName = "done" + (done++), checkFn = dirCheck; if ( typeof part === "string" && !part.match(/\W/) ) { - var nodeCheck = part = part.toUpperCase(); + var nodeCheck = part = isXML ? part : part.toUpperCase(); checkFn = dirNodeCheck; } @@ -1852,10 +1763,11 @@ var Expr = Sizzle.selectors = { return false; }, ID: function(match){ - return match[1]; + return match[1].replace(/\\/g, ""); }, - TAG: function(match){ - return match[1].toUpperCase(); + TAG: function(match, curLoop){ + for ( var i = 0; !curLoop[i]; i++ ){} + return isXML(curLoop[i]) ? match[1] : match[1].toUpperCase(); }, CHILD: function(match){ if ( match[1] == "nth" ) { @@ -1899,6 +1811,8 @@ var Expr = Sizzle.selectors = { } return false; } + } else if ( Expr.match.POS.test( match[0] ) ) { + return true; } return match; @@ -1997,9 +1911,9 @@ var Expr = Sizzle.selectors = { CHILD: function(elem, match){ var type = match[1], parent = elem.parentNode; - var doneName = match[0]; + var doneName = "child" + parent.childNodes.length; - if ( parent && !parent[ doneName ] ) { + if ( parent && (!parent[ doneName ] || !elem.nodeIndex) ) { var count = 1; for ( var node = parent.firstChild; node; node = node.nextSibling ) { @@ -2120,7 +2034,7 @@ try { makeArray = function(array, results) { var ret = results || []; - if ( array instanceof Array ) { + if ( toString.call(array) === "[object Array]" ) { Array.prototype.push.apply( ret, array ); } else { if ( typeof array.length === "number" ) { @@ -2299,6 +2213,11 @@ var contains = document.compareDocumentPosition ? function(a, b){ return a !== b && (a.contains ? a.contains(b) : true); }; +var isXML = function(elem){ + return elem.documentElement && !elem.body || + elem.tagName && elem.ownerDocument && !elem.ownerDocument.body; +}; + // EXPOSE jQuery.find = Sizzle; jQuery.filter = Sizzle.filter; @@ -2396,10 +2315,7 @@ jQuery.event = { var fn = handler; // Create unique handler function, wrapped around original handler - handler = this.proxy( fn, function() { - // Pass arguments and context to original handler - return fn.apply(this, arguments); - }); + handler = this.proxy( fn ); // Store data in unique handler handler.data = data; @@ -2498,10 +2414,10 @@ jQuery.event = { // remove all handlers for the given type else - for ( handler in events[type] ) + for ( var handle in events[type] ) // Handle the removal of namespaced events - if ( namespace.test(events[type][handler].type) ) - delete events[type][handler]; + if ( namespace.test(events[type][handle].type) ) + delete events[type][handle]; if ( jQuery.event.specialAll[type] ) jQuery.event.specialAll[type].teardown.call(elem, namespaces); @@ -2704,6 +2620,7 @@ jQuery.event = { }, proxy: function( fn, proxy ){ + proxy = proxy || function(){ return fn.apply(this, arguments); }; // Set the guid of unique handler to the same of original handler, so it can be removed proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++; // So proxy can be declared as an argument @@ -2732,7 +2649,7 @@ jQuery.event = { remove++; }); - if ( remove <= 1 ) + if ( remove < 1 ) jQuery.event.remove( this, namespaces[0], liveHandler ); } } @@ -2916,27 +2833,39 @@ jQuery.fn.extend({ }, live: function( type, fn ){ - jQuery(document).bind( liveConvert(type, this.selector), this.selector, fn ); + var proxy = jQuery.event.proxy( fn ); + proxy.guid += this.selector + type; + + jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy ); + return this; }, die: function( type, fn ){ - jQuery(document).unbind( liveConvert(type, this.selector), fn ); + jQuery(document).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null ); return this; } }); function liveHandler( event ){ var check = RegExp("(^|\\.)" + event.type + "(\\.|$)"), - stop = true; + stop = true, + elems = []; jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){ - if ( !event.isImmediatePropagationStopped() && check.test(fn.type) ) { + if ( check.test(fn.type) ) { var elem = jQuery(event.target).closest(fn.data)[0]; - if ( elem && fn.call(elem, event, fn.data) === false ) - stop = false; + if ( elem ) + elems.push({ elem: elem, fn: fn }); } }); + + jQuery.each(elems, function(){ + if ( !event.isImmediatePropagationStopped() && + this.fn.call(this.elem, event, this.fn.data) === false ) + stop = false; + }); + return stop; } @@ -3038,6 +2967,119 @@ jQuery( window ).bind( 'unload', function(){ if ( id != 1 && jQuery.cache[ id ].handle ) jQuery.event.remove( jQuery.cache[ id ].handle.elem ); }); +(function(){ + + jQuery.support = {}; + + var root = document.documentElement, + script = document.createElement("script"), + div = document.createElement("div"), + id = "script" + (new Date).getTime(); + + div.style.display = "none"; + div.innerHTML = '
a'; + + var all = div.getElementsByTagName("*"), + a = div.getElementsByTagName("a")[0]; + + // Can't get basic test support + if ( !all || !all.length || !a ) { + return; + } + + jQuery.support = { + // IE strips leading whitespace when .innerHTML is used + leadingWhitespace: div.firstChild.nodeType == 3, + + // Make sure that tbody elements aren't automatically inserted + // IE will insert them into empty tables + tbody: !div.getElementsByTagName("tbody").length, + + // Make sure that you can get all elements in an element + // IE 7 always returns no results + objectAll: !!div.getElementsByTagName("object")[0] + .getElementsByTagName("*").length, + + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + htmlSerialize: !!div.getElementsByTagName("link").length, + + // Get the style information from getAttribute + // (IE uses .cssText insted) + style: /red/.test( a.getAttribute("style") ), + + // Make sure that URLs aren't manipulated + // (IE normalizes it by default) + hrefNormalized: a.getAttribute("href") === "/a", + + // Make sure that element opacity exists + // (IE uses filter instead) + opacity: a.style.opacity === "0.5", + + // Verify style float existence + // (IE uses styleFloat instead of cssFloat) + cssFloat: !!a.style.cssFloat, + + // Will be defined later + scriptEval: false, + noCloneEvent: true, + boxModel: null + }; + + script.type = "text/javascript"; + try { + script.appendChild( document.createTextNode( "window." + id + "=1;" ) ); + } catch(e){} + + root.insertBefore( script, root.firstChild ); + + // Make sure that the execution of code works by injecting a script + // tag with appendChild/createTextNode + // (IE doesn't support this, fails, and uses .text instead) + if ( window[ id ] ) { + jQuery.support.scriptEval = true; + delete window[ id ]; + } + + root.removeChild( script ); + + if ( div.attachEvent && div.fireEvent ) { + div.attachEvent("onclick", function(){ + // Cloning a node shouldn't copy over any + // bound event handlers (IE does this) + jQuery.support.noCloneEvent = false; + div.detachEvent("onclick", arguments.callee); + }); + div.cloneNode(true).fireEvent("onclick"); + } + + // Figure out if the W3C box model works as expected + // document.body must exist before we can do this + jQuery(function(){ + var div = document.createElement("div"); + div.style.width = "1px"; + div.style.paddingLeft = "1px"; + + document.body.appendChild( div ); + jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2; + document.body.removeChild( div ); + }); +})(); + +var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat"; + +jQuery.props = { + "for": "htmlFor", + "class": "className", + "float": styleFloat, + cssFloat: styleFloat, + styleFloat: styleFloat, + readonly: "readOnly", + maxlength: "maxLength", + cellspacing: "cellSpacing", + rowspan: "rowSpan", + tabindex: "tabIndex" +}; jQuery.fn.extend({ // Keep a copy of the old load _load: jQuery.fn.load, diff --git a/tests/static/accordion.html b/tests/static/accordion.html index 3c1808cb3..3df4609b1 100644 --- a/tests/static/accordion.html +++ b/tests/static/accordion.html @@ -5,7 +5,7 @@ - + diff --git a/tests/static/all.html b/tests/static/all.html index 12c044b11..a737f7dd2 100644 --- a/tests/static/all.html +++ b/tests/static/all.html @@ -5,7 +5,7 @@ - +