Dave Methvin
395a032ad8
Use origSettings.context unless it's undefined; for that case use merged settings as context for backcompat with jQuery <1.3. Fixes #6727 .
2010-09-24 17:04:54 -04:00
dmethvin
c8c8f8458a
For JSON and script requests, set the scriptCharset before the url so IE won't interpret it the wrong way; fixes #4855 .
2010-09-25 05:01:31 +08:00
Heungsub Lee
033a4c41e0
Added a default quality of */*
for content negotiation.
2010-09-25 05:00:18 +08:00
temp01
7862c45ad2
Serialize keys with empty arrays/object values in jQuery.param(). Fixes #6481 .
2010-09-24 16:57:25 -04:00
jeresig
76db8a9822
Allow data to be bound to Flash objects (but still stopping short of attaching to applets. Fixes #6121 .
2010-09-24 16:24:07 -04:00
jeresig
f10057bc48
Make sure that a clone of the animate speed properties are used to avoid recursion problems. Fixes #3583 .
2010-09-24 15:57:51 -04:00
jeresig
e0a9615f82
Make sure that the body element exists before doing the body selector optimization. Fixes #6529 .
2010-09-24 15:53:38 -04:00
unknown
a088751a1b
Removing the second capture group. After the changes suggested by Jeff Roberson, the second capture group is no longer needed. See
...
http://stackoverflow.com/questions/3771105/can-someone-tell-me-the-purpose-of-the-second-capture-group-in-the-jquery-rts-reg
2010-09-24 09:37:03 -05:00
J. Ryan Stinnett
5c055040d3
Allow named animation speed to be 0. Fixes #6579 .
2010-09-24 10:13:00 -04:00
lrbabe
5d45448e71
Make the interval between two animations tick public: jQuery.fx.interval. Fixes #6276 .
2010-09-24 10:11:05 -04:00
jeresig
a220c81eb9
Increase the speed of the single setTimeout calls for the ready event.
2010-09-24 10:06:36 -04:00
jeresig
6dfdb14753
Merge branch 'master' of github.com:jquery/jquery
2010-09-23 12:09:49 -04:00
Robert Katic
484cc6e220
Made jQuery.type more consistent with host objects.
2010-09-23 12:08:41 -04:00
Robert Katic
da5706c974
Added support for map of events in live, die, delegate and undelegate. Fixes #6282 .
2010-09-23 12:07:42 -04:00
Robert Katic
694b625c92
Ensured that arrays are not considered same as plain object on deep extending. Fixes #5991 .
2010-09-23 12:07:06 -04:00
jeresig
e270d804b4
Delay the result of the readyState check to give scripts the opportunity to delay ready, as described by @jrburke in 747ba7defd
.
2010-09-23 11:38:22 -04:00
jeresig
a7aa86d0b1
Fix missing var. Thanks to @jeff-themovie for the catch.
2010-09-22 16:56:48 -04:00
jeresig
d7a6e75241
Add some tests for jQuery.isWindow and make sure that we're operating against an object before testing.
2010-09-22 16:50:38 -04:00
jeresig
c8dd49f756
Unify the means of detecting a window across the library. Fixes jQuery UI bug #5438 and jQuery bugs #6575 and 6088.
2010-09-22 16:41:51 -04:00
jeresig
ab454d9526
Allow # urls to contain #. Thanks to @alvopass in f9f9ee52e1
for the catch.
2010-09-22 14:58:07 -04:00
John Resig
f9f9ee52e1
Make sure that #... are trimmed from Ajax request URLs. Fixes #4987 .
2010-09-22 12:52:44 -04:00
jeresig
0b4b3ee8a5
Make .data(Object) extend the existing data object. Fixes #6692 .
2010-09-22 11:52:32 -04:00
Jacob Wright
626624a19a
Fix bug when accessing .data() on an empty set. Return null rather than throwing exception.
2010-09-22 11:38:37 -04:00
Karl Swedberg
1f667aa035
Added full support for easing in all shorthand effects methods (hide, show, toggle, fadeTo, slideUp, etc.). Previously, these methods could only be used with two of the three (speed, easing, callback) arguments, or, in the case of fadeTo, 3 of the 4 (speed, opacity, easing, callback) arguments. Added three more sets of tests to the series of "Chain" tests. Fixes #7014
2010-09-22 11:30:54 -04:00
jeresig
8e1d369710
Some minor lint fixes for the RegExp.
2010-09-22 09:46:21 -04:00
jeresig
9dc6e0c572
Applied the RegExp issues reported by Jeff Robinson here: http://jmrware.com/articles/2010/jqueryregex/jQueryRegexes.html Additionally broke out all remaining inline RegExp. Fixes #7062 .
2010-09-22 09:16:28 -04:00
jeresig
19b5d9e874
Re-work the document scoping.
2010-09-22 08:08:45 -04:00
jeresig
9ad7c21e70
Make sure the data- number has at least one number in it before passing to isNaN. Thanks to @cms in 8ebb9b22df
for a heads-up.
2010-09-22 07:34:31 -04:00
John Resig
e3463946e1
Make sure that non-px values aren't manipulated before input to height/width.
2010-09-21 17:12:42 -04:00
John Resig
1ac3713e7f
Fix bug with the readyWait DOM ready addition.
2010-09-21 16:26:36 -04:00
John Resig
dc8491defe
Scratch that, just punting on Opera and 304s for now - there may not be a good solution here. Fixes #6060 .
2010-09-21 16:13:50 -04:00
John Resig
ba9e0fc177
Use a different workaround for detecting when Opera finds a status 304 page. Fixes #6060 .
2010-09-21 15:22:34 -04:00
jeresig
3a0a352883
Escape RegExp braces to sooth JSLint's temper.
2010-09-21 08:53:34 -04:00
jeresig
8ebb9b22df
Switch to using isNaN instead of RegExp for data-.
2010-09-21 08:31:55 -04:00
jeresig
e0b24306a8
Handle some additional data- number edge cases.
2010-09-21 08:30:12 -04:00
jeresig
1f8a5e4bbc
Make sure that the data- import also supports arrays.
2010-09-21 08:20:31 -04:00
John Resig
e7c2d3b45b
Added in support for basic JSON object parsing of data- attributes.
2010-09-21 00:51:45 -04:00
John Resig
ae9df1412c
Make sure that undefined is returned for not found data- attributes, not null.
2010-09-21 00:44:47 -04:00
John Resig
d5d4e4df65
Tweaked the data number RegExp some to handle some other edge cases.
2010-09-21 00:38:26 -04:00
jeresig
4a46f3d7fb
Fixing the problem with data-* based numbers as mention by @jasonwebster in 20673d7
.
2010-09-20 20:08:57 -04:00
John Resig
20673d7e58
Pull data-* attributes into .data(). Original code by Andrée Hasson and Paul Irish. Fixes #6921 .
2010-09-20 17:47:41 -04:00
John Resig
747ba7defd
Allow plugins to delay the exeuction of the ready event. Delay the ready event by calling: jQuery.readyWait++ and force the event to fire by doing: jQuery.ready(true). Fixes #6781 .
2010-09-20 14:53:29 -04:00
jeresig
5b92cdd048
Removing extra arg.
2010-09-20 10:41:58 -04:00
jeresig
be59693037
No need to set returnValue if preventDefault exists. Thanks kangax for the catch.
2010-09-20 10:16:36 -04:00
John Resig
2d70dc9c43
Derp, had parseInt on the brain. Thanks karbassi in 6541eb9d80
.
2010-09-17 17:02:03 -04:00
John Resig
8691a826c0
Fix trailing arg.
2010-09-17 14:58:50 -04:00
John Resig
77e310b906
Simplifying the camelCase logic used in the CSS and Effects modules.
2010-09-17 14:53:10 -04:00
John Resig
6541eb9d80
Cleaning up some un-needed CSS code and adding back a temporary (deprecated) curCSS method.
2010-09-17 14:41:28 -04:00
John Resig
51d258074c
Merge branch 'csshooks'
2010-09-17 14:32:43 -04:00
John Resig
192bab8ed6
jQuery.css() returns a string value - handle this properly in the animation code.
2010-09-17 14:30:30 -04:00
John Resig
d1f3dc9a04
Make sure that empty height/width values are still set.
2010-09-17 13:51:12 -04:00
John Resig
fc5b69fc70
Bringing in the rdashAlpha/fcamelCase private var tweaks from the csshooks branch.
2010-09-17 13:18:39 -04:00
jeresig
37b607d281
Split apart jQuery.css into jQuery.css (computed values) and jQuery.style (currently set values).
2010-09-16 10:00:56 -04:00
jeresig
492a2e2c53
Wrap the core return in parens to fix a confused JSLint.
2010-09-14 09:57:26 -04:00
John Resig
959c20f768
Add a flag to verify if a browser supports some form of XHR request. Fixes #7030 .
2010-09-13 18:02:33 -04:00
John Resig
2bda99c18a
Making some more adjustments to handle auto CSS properties.
2010-09-13 18:00:28 -04:00
jeresig
8b7015987c
Only set height/width if it's a non-negative number (don't set it to 0).
2010-09-09 16:34:15 -04:00
jeresig
cb3a9c14f1
Make sure that height/width methods return numbers instead of strings.
2010-09-09 16:33:05 -04:00
jeresig
c168c30a6a
Another logic bug caught by furf in ad950c8c59
.
2010-09-09 16:29:26 -04:00
jeresig
c36596ea58
Make sure that the CSS hook getter isn't called if a forced computed style is done.
2010-09-09 16:26:30 -04:00
jeresig
a166860a19
Adding in a couple private variables to effects.js that were in css.js.
2010-09-09 15:45:24 -04:00
jeresig
7c8588530a
Make sure that string values are returned from the height/width CSS properties.
2010-09-09 15:42:38 -04:00
jeresig
194c93eca2
Merge branch 'master' into csshooks
...
Conflicts:
src/css.js
2010-09-09 15:35:18 -04:00
jeresig
ad950c8c59
Landing a bunch of bug fixes from furf's pull request at eefcbaebb31b89b5eb360cd5ec6165b89c84e75f.
2010-09-09 15:33:06 -04:00
jeresig
82b35a4f2c
Removing extraneous argument.
2010-09-09 10:20:32 -04:00
jeresig
2663041924
Make sure that jQuery is being exposed outside of core (this will be stripped during the build process). Follow-up to #7011 .
2010-09-09 08:23:10 -04:00
jeresig
acb162a697
Make sure that the removeEvent and buildFragment private functions are exposed (to help with access across modules). The final API for each of these is very much in flux and will likely change before the final release. Fixes #7011 .
2010-09-08 18:13:35 -04:00
jeresig
bca5765502
Make sure that jQuery works even when the individual modules are loaded separately AND jQuery.noConflict(true) is used. Fixes #7011 .
2010-09-08 13:54:33 -04:00
jeresig
a44ec40277
Make sure that jQuery works even when the individual modules are loaded separately AND jQuery.noConflict(true) is used. Fixes #7011 .
2010-09-08 12:00:29 -04:00
John Resig
b920f0aeb4
Broke more of the property-specific CSS logic out of the jQuery.css() function.
2010-09-05 11:01:27 -04:00
John Resig
920099b29c
First pass at unifying the various CSS methods in jQuery (jQuery.style, jQuery.curCSS, and jQuery.css are now all under jQuery.css).
2010-09-05 10:17:18 -04:00
John Resig
2912f8ab95
Broke apart some of the browser-specific logic for CSS handling.
2010-09-05 00:04:37 -04:00
John Resig
426045cc74
Some more minor formatting tweaks.
2010-09-04 23:34:52 -04:00
John Resig
1970154c3b
Tweaking the formatting from the previous commit.
2010-09-04 23:28:17 -04:00
Brandon Aaron
65b24861bc
First look at css hooks. These hooks provide a way to change how jQuery handles getting and setting certain css properties. This means normalizing properties like background-position can easily be done via plugins.
...
They are similar in concept to the special event hooks. Return false from the hook to revert control back to jQuery's normal processes for getting and setting certain css properties.
2010-09-02 21:06:40 -05:00
John Resig
13f27fcd05
Switched to use 'in' for the setInterval/window check as it also skirts around the Safari 2 NodeList crasher. See the discussion in 94f35d0519
for more details.
2010-08-27 18:17:07 -04:00
John Resig
1ead20c2ed
Blackberry 4.6 is capable of finding elements that are no longer in the DOM via getElementById. It only appears to happen when the node has been inside of a cloned Document Fragment. Fixes #6963 .
2010-08-27 15:14:30 -04:00
John Resig
ea8b1584b1
Use the native isArray whenever possible. See perf test by jdalton here: http://jsperf.com/isarray-vs-other Fixes #6825 .
2010-08-27 13:15:48 -04:00
John Resig
7f18d29287
Simplify the logic in $.type, thanks to jdalton for the suggesiton in 5d2be7e299
.
2010-08-27 07:03:30 -07:00
John Resig
5d2be7e299
Added some tweaks to $.type to handle null and undefined. Added a bunch of unit tests as well.
2010-08-27 06:10:52 -07:00
John Resig
5673e4bc3a
Only attempt to use the IE technique for setting opacity if the filter property exists (otherwise fallback to the standards-compatible technique).
2010-08-26 12:51:37 -04:00
John Resig
94f35d0519
Adding in a jQuery.type(obj) method (a simple map to using Object.prototype.toString.call). Fixes #3330 .
2010-08-25 09:57:34 -07:00
John Resig
18dad47489
Tweaked logic for working around Blackberry 4.7 makeArray(RegExp) issue. Fixes #6930 .
2010-08-25 09:27:30 -07:00
John Resig
cb40495b21
Make sure that missing attributes return undefined in Blackberry 4.7. Fixes #6938 .
2010-08-24 07:28:47 -07:00
John Resig
392174431a
.val() on empty options returns the text value rather than the value in Blackberry 4.7. Fixes #6932 .
2010-08-23 14:10:39 -07:00
John Resig
396dd21273
Fixing getting/setting classes and makeArray(RegExp) for Blackberry 4.7. Fixes #6930 , #6931 .
2010-08-23 12:38:55 -07:00
John Resig
c4b4df4691
Make sure that .data() events don't bubble, per the discussion in 2e10af143b
. Fixes #6832 .
2010-07-27 13:45:32 -04:00
Dave Reed
2084e01780
Fix for issues discussed in 9faab0b74f
. Goes towards fixing #6808 .
2010-07-23 11:25:31 -04:00
InfinitiesLoop
266facc08a
Ticket 6808. Updated per code review comments by jeresig
2010-07-23 03:52:02 +08:00
InfinitiesLoop
9faab0b74f
Ticket #6808 . Changes data() so on plain objects, it uses a function to contain the cache ID to avoid it being JSON serialized.
2010-07-23 03:52:01 +08:00
InfinitiesLoop
2e10af143b
Ticket #6804 . Adds a changeData event.
2010-07-20 10:12:40 +08:00
adam j. sontag
a2bd8a53f3
.closest() should return a unique set of elements, not duplicates of the same ancestor. Fixes #6700
2010-06-21 14:18:06 -04:00
jeresig
c90d609c0d
Fixing request data param issue. Thanks to mislav for the patch. Fixes #5123 .
2010-06-14 23:08:28 -04:00
jeresig
c34a62f8ab
Tweak spacing from last commit.
2010-06-14 23:05:01 -04:00
malsup
d1931a8241
Fix for http://dev.jquery.com/ticket/6451
2010-06-15 11:02:26 +08:00
John Resig
1533bf7c77
Expose jQuery.uuid (use with caution) and make sure the expando property is used in the events module.
2010-04-24 14:16:27 -07:00
jeresig
4a64f9a5b8
Removed extra semicolon leftover from recent tweaking.
2010-03-31 14:36:24 -04:00
Brandon Aaron
efea0f23f9
Merge branch 'master' of github.com:jquery/jquery
2010-03-23 22:40:38 -05:00
jeresig
8effe3a7de
Made it so that you no longer need to build jQuery in order to run the test suite (but you'll still need a checkout of QUnit and Sizzle, at least).
2010-03-23 12:12:16 -04:00
Brandon Aaron
656fe92178
Fixed an issue with setting offset of absolutely positioned element that has no position values ("auto"). Fixes #5781 .
2010-03-22 20:11:37 -04:00
Brandon Aaron
08cf82e88e
Fix setting only one property at a time in .offset({})
2010-03-22 20:05:08 -04:00
jeresig
ba8938d444
Switch to using String.prototype.trim from String.trim as it's more-widely available.
2010-03-11 10:49:19 -05:00
jeresig
f68b46d7ab
Make sure that special remove and teardown events get called when .die() is used. Additionally made sure that default actions are triggered when namespaced events are used. Fixes #6202 and #6250 .
2010-03-09 12:22:25 -05:00
jeresig
141ad3c3e2
Landing a faster trim method. Based upon the work by Travis Hardiman and DBJDBJ. More details here: http://forum.jquery.com/topic/faster-jquery-trim Fixes #2279 , #4452 , and #4835 .
2010-03-09 09:14:27 -05:00
jeresig
0a307b332e
No need to use .call() anymore since we switched from .apply() for appendTo, etc. Thanks to Robert in 2c08004f6d
for the heads-up.
2010-03-05 09:59:58 -05:00
jeresig
2c08004f6d
Attempted to fix #6227 , not entirely sure if it's a problem as I'm having a hard time reproducing it. Regardless, the change is harmless and potentially even speeds up appendTo, etc. slightly.
2010-03-05 00:07:57 -05:00
jeresig
9584e908a2
Added in Ben Alman's proposed event.namespace property (the property holds the namespaces specified in a call to trigger). Additionally fixes namespaces with .live(). Fixes #6208 and #6209 .
2010-03-02 17:34:12 -05:00
jeresig
04e31ff058
Make sure that we don't try to remove data from an applet. Re-Fixes #1675 .
2010-03-02 13:56:15 -05:00
jeresig
86ace44fbb
Moving more properties onto jQuery.ajax, also copy them back to the jQuery object for backwards compatibility.
2010-03-02 10:44:48 -05:00
jeresig
a33d01a7b0
Remove the need for the return in sizzle-jquery and just remove the attempt to expose Sizzle completely. jQuery is 100% passing JSLint ('make lint') now.
2010-03-01 21:56:08 -05:00
jeresig
dcf0fa5048
More changes to get jQuery in line with JSLint.
2010-03-01 21:24:49 -05:00
jeresig
8c8f685a91
We don't want to increment the Ajax counter if there isn't a global event.
2010-03-01 19:31:13 -05:00
jeresig
a4043cdcbf
Land some additional tweaks related to running through JSLint.
2010-03-01 18:19:29 -05:00
jeresig
fc08d0ea8d
Fixed some cases where expression, expression was used and shouldn't be.
2010-03-01 16:26:57 -05:00
jeresig
a18f682012
Made some code tweaks related to running jQuery through JSLint (thanks to Lorin Larson for the JSLint run).
2010-03-01 12:44:56 -05:00
brandonaaron
1d352084c4
Use correct window reference in offset to work properly cross-frame. Fixes #6190 .
2010-02-27 19:43:23 -06:00
jeresig
36faab439a
No reason to double-bind the beforeunload event. Fixes #6113 .
2010-02-27 10:03:43 -05:00
jeresig
a49e6b6313
Attach data directly to plain objects, no reason to use the central jQuery.cache. Fixes #6189 .
2010-02-27 09:49:58 -05:00
jeresig
42568db4c4
Merge branch 'master' of github.com:jquery/jquery
2010-02-27 09:02:18 -05:00
jeresig
a45372a4c5
Adding in .bind(name, false), .unbind(name, false) support - an easy way to just stop bubbling and the default action on an element. Fixes #6188 .
2010-02-27 09:02:13 -05:00
brandonaaron
7d5da0ee03
Make sure events exist before trying to access them in jQuery.event.handle and removed unnecessary var statement. Fixes #6163 .
2010-02-27 01:31:33 -06:00
jeresig
ba7195e3f9
Make it so that you can pass in event data to .click(), et. al. Fixes #6187 .
2010-02-26 20:01:19 -05:00
jeresig
9e06903a99
Make sure that undefined is always returned for undefined data properties. Fixes #6166 .
2010-02-26 12:35:04 -05:00
jeresig
7f5179b654
Make sure that unbinding on a plain javascript object works correctly. Fixes #6184 .
2010-02-26 11:32:12 -05:00
jeresig
28b489bfc8
Make sure that the correct type is set for live mouseenter/mouseleave events. Fixes #6169 .
2010-02-26 11:23:49 -05:00
jeresig
26b0e913dd
Make sure that live events bubble unless explicitly told not to, like a normal event. Fixes #6182 .
2010-02-26 09:26:14 -05:00
jeresig
437ddb931d
No need to run trim on every class iteration in addClass, thanks for the heads-up Leeoniya.
2010-02-13 14:30:27 -05:00
jeresig
a6f3757d50
Found a better detect for deleting an expando, added back in removeAttribute as it does work in IE.
2010-02-13 06:57:58 -05:00
jeresig
9195107dbb
Clean up expando removal code - only try to delete the expando from an element if it's possible.
2010-02-13 06:32:20 -05:00
jeresig
da966573c3
Make sure that elements that have been removed also have their special events cleaned up. Fixes #6084 .
2010-02-13 06:10:43 -05:00
jeresig
6a82f2ae63
Make sure that mousing over XUL elements results in no trigger of a mouseleave. Fixes #6013 .
2010-02-13 05:45:48 -05:00
jeresig
dd5c26304a
Make sure that live focus and blur events also bind to the regular events, to handle triggered events. Fixes #6055 .
2010-02-13 05:37:17 -05:00
jeresig
467063a2e2
When binding a change directly to a file input just passthrough to the normal bind. A temporary fix for #5997 , needs more investigation.
2010-02-13 04:40:26 -05:00
jeresig
c1ac9fdf45
Don't inject style elements using innerHTML as they will go away in IE. Fixes #5977 .
2010-02-13 03:30:45 -05:00
jeresig
99e7560808
Make sure that we don't try to use a detached node (that was in a fragment) as a fragment in IE. Fixes #5829 .
2010-02-13 03:14:00 -05:00
jeresig
726fda08be
Make sure the fragment isn't used if it's not the same set we're working with. Fixes #6068 .
2010-02-13 02:49:04 -05:00
jeresig
a7dc66b832
Rename internal .getText to maintain parity between it and the primary .text(). Fixes #6094 .
2010-02-13 02:26:50 -05:00
jeresig
abcc1a76ee
If .attr() is run on no elements undefined should be returned (as should be the case when no attribute is found). Fixes #6012 .
2010-02-13 02:23:38 -05:00
jeresig
83a044f1b5
Make sure that no extra whitespace is leftover after an addClass. Fixes #6050 .
2010-02-13 02:18:38 -05:00
jeresig
94d925cd46
Make sure leading whitespace is trimmed for parseJSON. Fixes #6031 .
2010-02-13 02:14:23 -05:00
jeresig
8b86004f9c
Make sure that fragments containing options aren't cached.
2010-02-13 01:50:19 -05:00
jeresig
7a467ed936
Remove the need for the internal setArray method, it was only really used by pushStack anyway. Fixes #6003 .
2010-02-13 01:45:09 -05:00
jeresig
8404ad6070
Make sure that there are some live events before continuing on.
2010-02-12 19:38:57 -05:00
jeresig
5d36fe3210
Make sure that live mouseenter/mouseleave work properly. Fixes #6077 .
2010-02-11 16:50:26 -05:00
John Resig
021b809ace
Make sure that the teardown is called after all the handlers of a type are removed. Fixes #6065 .
2010-02-11 01:42:51 -05:00
John Resig
639f4931b0
No reason to expose the temporary _load method.
2010-02-11 01:23:13 -05:00
jeresig
35c379075c
Simplify the special change/submit event removal logic, per Scott's suggestion in 5267824aa3
.
2010-02-10 15:56:53 -05:00
jeresig
5267824aa3
Updated formatting for the change/submit special event logic. Also switched the function declarations to statements. Thanks to Garrett for the recommendation.
2010-02-08 23:28:15 -05:00
jeresig
fec02aa5cb
Merge branch 'master' of github.com:jquery/jquery
2010-02-08 11:31:13 -05:00
jeresig
75bb2d6e51
Fix in logic for handling exclusive namespace testing. Fixes #6048 .
2010-02-08 11:31:01 -05:00
Ben Alman
3c5b1ca03b
Ok, this should actually fix #6041 :)
2010-02-06 11:46:44 +08:00
tomviner
8a66a30fec
spelling mistake (insead)
2010-02-06 10:50:57 +08:00
jeresig
d743899971
Make sure that &#...; entities are encoded properly. Fixes #6042 .
2010-02-05 19:58:08 -05:00
jeresig
54bd004e53
Make sure that we don't try to double-encode params using the traditional style. Fixes #6041 .
2010-02-05 19:43:31 -05:00
jeresig
43b3ed086d
Update special events to work with the internal event system changes. Also fixes #5967 .
2010-02-05 11:02:56 -05:00
jeresig
be2407e233
Rewrote the live event handling to use the new event logic. Also added in support for live namespaced events. Fixes #5945 .
2010-02-04 21:36:32 -05:00
jeresig
e7912805d6
A large refactor of the event handling logic. Data and namespace information is maintained in a separate object now, no longer on the event handler. Proxy functions are no longer needed, as a result. Additionally execution order of the handlers is maintained, fixing #4261 , and the execution of handlers is maintained even while they're being removed. Live events will be refactored separately.
2010-02-04 00:20:52 -05:00
jeresig
8a4b2102ff
Removed extraneous nodeName check from f95147f465
commit.
2010-02-01 21:56:11 -05:00
Noah Sloan
8660ea1ab6
Only detach the incoming elements to replaceWith if they're DOM nodes. Fixes #5986 .
2010-02-01 21:48:05 -05:00
jeresig
e76ba32ceb
Make sure the resulting className from removeClass is nicely trimmed. Fixes #5988 .
2010-02-01 21:33:58 -05:00
jeresig
f95147f465
Fix for problem in IE 8 where deserialized (then reserialized) form markup was getting malformed. Thanks IE. Fixes #5998 .
2010-02-01 21:26:47 -05:00
jeresig
f9417b9da9
Same problem happens with plain embed elements as well. Follow-up fix to #5904 .
2010-02-01 18:52:12 -05:00
jeresig
1b28bba4d2
Make sure that injection of object elements continues to work in IE 6. Really hard to unit test this in a meanigful manner (the result is a visually broken plugin). Will need to be diligent about watching for this in the future. Fixes #5094 .
2010-02-01 18:22:48 -05:00
jeresig
31432e048f
Add .delegate() and .undelegate(). An alternative to using .live() which goes from a single root and filters by the specified selectors. Should be used like do: .delegate(td, hover, someFn);. Fixes #6005 .
2010-02-01 18:06:03 -05:00
jeresig
cb65daa399
The context for 'body' should still be document, in this case.
2010-01-29 15:04:26 -05:00
jeresig
4f2e209b85
Make sure fragment caching is only happening on nodes in the main document. Fixes #5978 .
2010-01-29 00:22:20 -05:00
jeresig
388a00fe91
Skip around inserting a fragment when possible (insert the node directly).
2010-01-28 17:18:27 -05:00
jeresig
b8076a914b
Landing some minor perf optimization to jQuery().
2010-01-28 17:17:51 -05:00
jeresig
0db207da23
Optimize for the case where a fragment-bound element is being injected into one other element.
2010-01-28 16:30:37 -05:00
jeresig
98c7248518
Further optimize the empty/remove/cleanData logic.
2010-01-28 15:25:52 -05:00
jeresig
0252b78201
Provide a way to simulate default browser actions. Fixes #5973 .
2010-01-28 14:34:09 -05:00
jeresig
e9092e9954
Make sure namespaces is always an array, when passed to the remove special. Follow-up to eed69eccc5
.
2010-01-28 14:16:52 -05:00
jeresig
eed69eccc5
Make sure that jQuery.data( elem ) always returns a data object, fixes #5971 . Improve the performance of .bind() and .unbind(), fixes #5972 .
2010-01-28 14:12:44 -05:00
jeresig
942f8f7f75
No reason to limit the initial change data store to just radio elements. Fixes #5851 .
2010-01-27 10:06:50 -05:00
jeresig
0b3165fd23
Make sure that the correct context is being passed in for replaceWith(fn). Fixes #5798 .
2010-01-25 19:22:28 -05:00
jeresig
9f17e70ae9
Make work wrapInner(fn) work consistently. Fixes #5799 .
2010-01-25 19:16:23 -05:00
Robert Katic
55a64cf095
Filtering elements only. Fixed #5920
2010-01-26 07:51:44 +08:00
Mike Alup
ca90ffb332
Provided detailed message for JSON parse errors. Fixes #4435 .
2010-01-25 18:48:52 -05:00
Michael Monteleone
bed759c95c
Make sure that checked state is cloned properly. Based upon the patch by Michael, required better test cases and in doing so found more edge cases. Introduced a new check into jQuery.support as a result. Fixes #5929 .
2010-01-25 18:43:33 -05:00
jeresig
390186b902
Make sure that special.add actually copies over event namespaces and data. Fixes #5779 and #5834 .
2010-01-25 17:01:07 -05:00
jeresig
0474917c9d
Make sure multiple bound events have their namespaces and data maintained. Fixes #3549 .
2010-01-25 16:45:39 -05:00
jeresig
d24443fb55
Make sure that it's possible to preventDefault natively-triggered (submit, focus, blur, click) events. Fixes #5695 .
2010-01-25 13:45:07 -05:00
jeresig
323270f6dc
Update the license URL in the header.
2010-01-25 09:31:40 -05:00
John Resig
1a14a38ff7
Make sure original context is maintained and not the deep extended one. Fixes #5924 .
2010-01-25 01:08:24 -05:00
John Resig
f91b944cab
Objects with length properties weren't getting serialized properly by jQuery.param(). Fixes #5862 .
2010-01-25 00:46:03 -05:00
John Resig
76236a1506
Use alternative technique for triggering an abort, preventing an exception from being thrown in Firefox. Fixes #5923 .
2010-01-24 22:13:52 -05:00
John Resig
c639405c4d
Don't set the context in .load() as it stops the global ajax events from firing. Fixes #5922 .
2010-01-24 21:58:32 -05:00
John Resig
6a3d0996ed
Make sure that XHTML-style HTML is purified in .html(). Fixes #5845 .
2010-01-24 21:37:05 -05:00
jeresig
f06e0e5575
Expose cleanData, make sure that all bound event handlers are properly cleaned up after html/empty/remove. Fixes #5856 and #5906 .
2010-01-23 21:20:19 -05:00
jeresig
4f9aa62a85
Added in .height(fn) and .width(fn) support. Fixes #5915 .
2010-01-23 20:49:59 -05:00
jeresig
781fe8b80d
Make empty strings (and other non-string values) simply return null from parseJSON. Also added some parseJSON tests. Fixes #5859 .
2010-01-23 17:08:26 -05:00
jeresig
0912109ffc
Expose the JSON parsing logic. Fixes #5914 .
2010-01-23 16:51:51 -05:00
jeresig
a6ef036bb6
Centralize the logic for throwing exceptions. Fixes #5913 .
2010-01-23 16:48:47 -05:00
jeresig
3e286440d5
Make sure that .die() with no args works. Fixes #5789 .
2010-01-23 16:37:12 -05:00
jeresig
8ea634fd07
Merge branch 'master' of github.com:jquery/jquery
2010-01-23 12:52:39 -05:00
Matt Curry
f6ec9d54d1
Select (with a selected) fired change on first focus in IE. Fixes #5869 .
2010-01-23 12:52:32 -05:00
Karl Swedberg
2c28f229e5
fixed offset(coordinates) returns null when no matching elements in jQuery object (fixes ticket #5888 )
2010-01-24 01:26:35 +08:00
Karl Swedberg
21441b1cbc
Made .show() and .hide() use .animate() only if speed argument is truthy or 0.
2010-01-24 01:25:22 +08:00
Ben Alman
28ce15979f
fixed jQuery.dir regression introduced with 1.4 *untils patch that errored when traversing XHTML text nodes with an until test
2010-01-24 01:20:53 +08:00
Ben Alman
09ef5b7598
Simplification of uaMatch, based upon the patch by Ben Alman.
2010-01-23 12:13:46 -05:00
Irae Brasil
01f72026ec
Added support for multiple live event handlers, live hover, and live focus/blur (mapped to focusin/focusout). Fixes #5804 , #5801 , #5852 .
2010-01-23 11:56:24 -05:00
Irae Brasil
b9ca157998
Make sure that live handlers don't stop inline scripts from executing. Fixes #5835 .
2010-01-23 11:14:29 -05:00
Irae Brasil
150e44cdda
Make sure non-left-click events don't bubble. Fixes #3861 .
2010-01-23 11:12:26 -05:00
jeresig
435772e29b
Adding in the change recommended by Alexander Farkas to fix some bugs in the change delegation logic. Fixes #5851 .
2010-01-18 17:52:36 -05:00
jeresig
257a4693f4
Fix missing var declaration for the length iterator.
2010-01-18 17:19:44 -05:00
John Resig
155ecf42a0
Make sure regular settings object is set as context for all Ajax requests, if none is specified. Fixes #5838 .
2010-01-16 10:11:01 -05:00
John Resig
6618ff0b0a
Removed some dead code from buildFragment. Thanks to Sean Catchpole for the suggestion.
2010-01-15 17:46:33 -05:00
John Resig
199a721103
Expose the proxy object on the object, for the benefit of plugin authors (Thanks to Justin Meyer for the suggestion).
2010-01-15 15:41:09 -05:00
John Resig
eb496f757a
The inArray declaration was accidentally duplicated.
2010-01-15 10:49:18 -05:00
John Resig
4397f0fd41
Removed extraneous thisObject references. Thanks to Matt Dunlap for the heads-up.
2010-01-14 01:42:08 -05:00
jeresig
1960f28c0b
Make sure no exception is thrown if no event handler is found (which is the case for applets, objects, and embeds).
2010-01-13 11:24:54 -05:00
jeresig
05aaa33957
Make sure that null params aren't traversed. Fixes #5794 .
2010-01-13 09:29:01 -05:00
jeresig
23492fdf9f
Send data if a DELETE Ajax request is done. Fixes #5752 .
2010-01-13 00:42:22 -05:00
jeresig
5d49335eac
Make sure that disconnected nodes aren't sorted/uniqued. Fixes #5791 .
2010-01-13 00:12:18 -05:00
jeresig
8e53f7b5d6
Fixed typo in logic, also disabled function setters in this case to allow the functions to passthrough and bind.
2010-01-12 21:54:06 -05:00
jeresig
b5f077ae6a
Make sure that the xhr object still exists after the abort is called.
2010-01-12 21:44:37 -05:00
jeresig
1d8b3a9af2
Make sure that the focusin and focusout easy-bind methods are exposed.
2010-01-12 17:03:34 -05:00
jeresig
61983cbf17
Make sure oldAbort is only called if the xhr object still exists.
2010-01-12 16:50:59 -05:00
jeresig
dd45c324ec
Simplified some of the logic for handling the ajax aborts, making sure that ajaxStop isn't called twice.
2010-01-12 10:59:50 -05:00
jeresig
d60b197810
ajaxStop was getting called too many times, separated some of the logic into the abort method itself.
2010-01-12 10:47:00 -05:00
jeresig
7afe6dcc08
Make sure that Opera fires events after an aborted Ajax attempt. Fixes #5787 .
2010-01-12 10:31:51 -05:00
Paul Irish
7be5ec1248
browser version detection revised for opera >= 10, which was reporting itself as 9.8 due to their new policy
2010-01-12 11:42:31 +08:00
Neeraj Singh
8d7965a607
fixed typo in comments
2010-01-12 11:42:22 +08:00
jeresig
44e6beb103
Make sure we do the malformed JSON check for all both JSON.parse and new Function (this helps to create uniformity between browser implementations of JSON.parse - like where Chrome allows some malformed strings. Thanks to DBJDBJ for the heads-up.
2010-01-11 16:43:21 -05:00
jeresig
23d600c66d
Make sure that wrapInner works on elements that have no contents. Fixes #3552 .
2010-01-11 16:31:31 -05:00
jeresig
3e9ef6f5c0
Final pass at fixing #5785 . Need to make sure that inner-nodes are detached before the remove() occurs (and it should still occur, the nodes are being obliterated.
2010-01-11 16:25:01 -05:00
jeresig
36a98b95c2
Make sure we use detach instead of remove in replaceWith. Fixes #5785 .
2010-01-11 15:57:45 -05:00
jeresig
366039a6f0
Revert "Adding in backwards-compatiblity support for jQuery().bind/unbind/trigger - and immediately deprecating it. Please explicitly use jQuery(document) in your code."
...
This reverts commit e9d5947b4a
.
2010-01-11 13:48:40 -05:00
jeresig
5a0ac24e35
Make sure that submit event is still bound for regular form submit events. Thanks to Mark Gibson for the fix suggestion.
2010-01-11 12:26:28 -05:00
jeresig
d6d5ed4c68
Merge branch 'setterargs'
2010-01-07 14:26:06 -05:00
jeresig
0e5370b89c
Re-ordering the args to setOffset() in case people were relying upon the old order (doubtful).
2010-01-07 14:08:32 -05:00
jeresig
4fa00369f0
Added in support for .offset(Function).
2010-01-07 14:07:21 -05:00
jeresig
8fa9e9d6d0
Make sure that .html(Function) gets the correct previous value.
2010-01-07 13:33:30 -05:00
jeresig
a9665bbe9b
Make sure the exception has some level of parity with the error from json2.js.
2010-01-07 12:25:50 -05:00
jeresig
308d6cdad0
Make sure that a parsererror is thrown whenever malformed JSON comes back from a server (so that the Ajax error handler is called). Makes it uniform across browsers that do and don't have JSON.parse support.
2010-01-07 12:21:58 -05:00
jeresig
c14fa516ae
Back out the try/catch logic from around JSON.parse. We should always try to use it, otherwise security will suffer.
2010-01-07 11:54:26 -05:00
jeresig
21e15219be
Removed .removeAttr(Function), it didn't really make sense.
2010-01-07 11:14:56 -05:00
jeresig
d36b29fa8e
Make sure the state is passed in to the toggleClass attribute function.
2010-01-07 11:04:21 -05:00
jeresig
c68fbc2071
There's enough logic going on in jQuery.ajaxSettings.xhr to warrant splitting the function based upon the functionality.
2010-01-07 10:00:55 -05:00
jeresig
4681216c4b
Fixed some bugs relating to the setter arg change in val and html. Also optimized the code in val a bit.
2010-01-07 09:53:16 -05:00
jeresig
2526e29353
Fixing some bugs in the re-tooling of toggleClass, adding in some performance optimizations.
2010-01-06 15:23:30 -05:00
jeresig
600d314538
A first pass at making sure that all the setter function arguments receive the index of the element and a relevant value to work with. Fixes #5763 .
2010-01-06 15:08:07 -05:00
jeresig
e424e01c47
Merge branch 'master' of github.com:jquery/jquery
2010-01-06 11:32:39 -05:00
jeresig
e9d5947b4a
Adding in backwards-compatiblity support for jQuery().bind/unbind/trigger - and immediately deprecating it. Please explicitly use jQuery(document) in your code.
2010-01-06 11:32:29 -05:00
Filipe Fortes
0d1a2c1b11
Make sure to do a deep copy on arrays. #5750
2010-01-07 00:11:22 +08:00
jeresig
6861b5d4eb
Added in support for content-type sniffing for scripts. Fixes #5718 .
2010-01-06 10:19:38 -05:00
Rick Waldron
787f271052
Detect JSON Ajax requests by the response content-type (like is done with XML). Fixes #5709 .
2010-01-05 19:48:16 -05:00
jeresig
230614b4df
Merging in jQuery.proxy() branch.
2010-01-05 19:18:39 -05:00
jeresig
8db0dd2c64
Added in a holdover jQuery.event.guid for back-compat (two plugins use it: mousewheel and a datepicker). Plugin authors should work to stop using jQuery.event.guid and jQuery.event.proxy ASAP.
2010-01-05 19:17:28 -05:00
jeresig
0645b71ee6
Merge branch 'useragent'
2010-01-05 19:10:42 -05:00
jeresig
ff3645ee05
Try to use the native JSON parser in all cases and fallback to the old technique otherwise. This allows us to also handle cases where the JSON parser is unable to parse JSON-like strings correctly (e.g. {foo:bar}) which is something that worked before but would stop working with the switch to the new parser.
2010-01-05 17:33:41 -05:00
jeresig
ffb1867a43
Rewrite of jQuery.browser to become engine-centric, rather than browser-centric. Also attempt to determine the engine version in a smarter fashion, less prone to error. Finally, enhanced the test suite with 255 useragent strings from http://user-agent-string.info/download for testing. jQuery.browser.safari is now deprecated, use jQuery.browser.webkit instead.
2010-01-05 17:01:20 -05:00
jeresig
3f648c4e3a
Make sure that the ActiveX exception is caught if it's unable to be loaded. Fixes #2849 .
2010-01-05 11:35:11 -05:00
jeresig
b2289f3ec1
Try to use XMLHttpRequest in more cases in IE 7. Thanks to Matt Kruse and Sam Collett for the suggestions. Fixes #3623 , #2849 , #5338 , and #5529 .
2010-01-05 10:57:30 -05:00
John Resig
25ee9cee26
Update the copyright from 2009 to 2010.
2010-01-03 20:04:24 -05:00
jeresig
1d2b1a57da
Added in jQuery.proxy(obj, name), like the method described in Secrets of the JavaScript Ninja and in Dojo's Hitch, and added in some unit tests.
2009-12-31 15:17:52 -05:00
jeresig
a5dbca4a06
Moved jQuery.proxy() into core.
2009-12-31 15:06:45 -05:00
jeresig
40ce7f9830
Merge branch 'bug-5735'
2009-12-31 14:49:01 -05:00
jeresig
6cb2945837
Rather than declaring empty anonymous functions all around, introduce and use a single empty function. Thanks to Matt Kruse for the suggestion.
2009-12-31 09:50:49 -05:00
jeresig
ea5d514008
When .bind('unload') was called it accidentally went recursive, from 1bac61655b
. Fixes #5688 .
2009-12-31 00:49:53 -05:00
jeresig
66975de2d2
Remove the .bind(name, fn, thisObject) and promote jQuery.event.proxy() to jQuery.proxy() as alternative to handling scoping on callbacks. Fixes #5736 .
2009-12-31 00:37:23 -05:00
jeresig
fe6c86d530
Experiment switching to using onreadystatechange rather than a setInterval for Ajax requests. Fixes #5735 .
2009-12-30 23:53:06 -05:00
jeresig
a00e63ea5a
Make a feature detect for the attribute selected code. Fixes #5702 .
2009-12-22 15:46:54 -05:00
jeresig
7b0b348419
The option isn't, necessarily, hidden when this occurs.
2009-12-22 15:06:27 -05:00
jeresig
4729f4d443
Make sure that selected works in Safari on options in optgroups. Fixes #5701 .
2009-12-22 15:02:52 -05:00
jeresig
baff0b0c85
Merge branch 'master' of github.com:jquery/jquery
2009-12-22 13:53:04 -05:00
jeresig
9360cccc9e
Forgot to make sure that oldData actually had data in it before the copy attempt.
2009-12-22 13:28:46 -05:00
Ben Alman
3951894504
Moved jQuery.param "traditional" flag into jQuery.ajaxSettings, can now be overridden via 2nd argument to jQuery.param
2009-12-23 01:49:53 +08:00
jeresig
7d0c18034e
Explicitly re-bind the events on clone. Copying over the data isn't enough. Fixes #5681 .
2009-12-22 12:04:17 -05:00
jeresig
e87b090cb7
The logic for specified option values was already handled by .val(), removed the unnecessary code.
2009-12-22 02:03:41 -05:00
jeresig
1e64d58183
Make sure that the correct value is being pulled from checkboxes in Webkit. Fixes #5699 .
2009-12-22 02:00:46 -05:00
jeresig
1b67aaee74
Make sure that the correct value is retreived for options that have no value specified, in IE 6. Continues to fix #5697 .
2009-12-22 01:28:37 -05:00
jeresig
f298cce100
Made sure that the .val() logic for setting radios and checkboxes was correct. Fixes #5698 .
2009-12-22 01:18:49 -05:00
jeresig
261b7efb5f
Fixed the issue where getting an empty value was impossible. Fixes #5697 .
2009-12-22 00:24:23 -05:00
jeresig
7e69fdbad4
Fixed spelling mistake noted in dc6b7ce3469eaadb37a151d449e8d36571d1894.
2009-12-21 20:19:49 -05:00
jeresig
3776cbe314
Standardize on using double-quotes for string literals.
2009-12-21 20:13:16 -05:00
jeresig
61e37d4149
Made a number of spacing changes to bring the code more-inline with the jQuery Core Style Guideline.
2009-12-21 19:58:13 -05:00
jeresig
36c99dc0c7
Tweaked the syntax of withinElement a bit.
2009-12-21 18:06:23 -05:00
jeresig
e083d15fc7
Tweaked a couple cases where == was used instead of ===.
2009-12-21 18:02:02 -05:00
Alexander Farkas
209751fcbd
Make sure that the beforeactivate event isn't accidentally prevented.
2009-12-21 16:24:03 -05:00
Jörn Zaefferer
03481a52c7
Stop trying to emulate the focus/blur event in IE, doesn't work as one might expect, anyway. Instead, implement the focusin/focusout events in all other browsers - which creates a much better parity across all browsers. Uses event capturing instead of bubbling to make it happen. Thanks to Alexander for the recommendation and to Joern Zaefferer for the original focus/blur delegation code.
2009-12-21 16:10:21 -05:00
Alexander Farkas
5dc6b7ce34
Used the patch from Alexander as the basis for a rewrite of the IE change event logic. Now has full parity with the regular change event in other browsers: Works with regular bind, works better with multiple selects, works as a regular change event (note test suite changes), works with readonly/disabled inputs, and much more. The original patch had a number of problems, including firing the change event too many times, not bubblinb properly, and not handling clicks on multi-selects properly - that should all be fixed now. Thanks Alexander for the patch pushing in the right direction.
2009-12-21 15:32:32 -05:00
jeresig
0d5bd17461
Moved logic for handling .animate({}), doesn't queue anymore. Fixes #5459 .
2009-12-21 11:11:03 -05:00
jeresig
1feb92afb4
Make sure that we don't bind the onunload event in Opera.
2009-12-18 22:35:02 -05:00
jeresig
3fd62eae9d
Switched from using YUI Compressor to Google Compiler. Minified and Gzipped filesize reduced to 22,839 bytes from 26,169 bytes (13% decrease in filesize). Sizzle copyright was merged into the main header (since it's removed automatically). Still passes all unit tests.
2009-12-18 21:23:26 -05:00
jeresig
42f8c3add3
No need to use the conditional comment for binding the onunload event in IE.
2009-12-18 20:29:22 -05:00
jeresig
298bfb79e6
The constructor check for isPlainObject was redundant, everything still passes without it.
2009-12-18 19:43:04 -05:00
jeresig
67b3be24e1
Added additional checks for DOM nodes and window to isPlainObject, IE 8 was still letting those pass through. Fixes #5669 .
2009-12-18 19:36:35 -05:00
jeresig
d40083c866
Disabled the passthrough .attr(method_name) functionality. You can now use it if you do: .attr({method_name: value}, true) OR as an easy initialization method: jQuery('<div/>', {html: '...', id: 'test'}).
2009-12-18 12:41:53 -05:00
Robert Katic
148fb7ba8e
Made isPlainObject() supporting null, undefined, and window values on IE too. Also added some related tests. Fixes #5669 .
2009-12-19 01:19:34 +08:00
jeresig
27d65b59f9
Backing out the change from 841f9ff7a1
, it was ineffectual in Internet Explorer. Keeping the broken test case, for now, so that we can check into the issue some more.
2009-12-18 11:30:04 -05:00
jeresig
f036630692
Brought the attributes module more inline with the jQuery style guidelines.
2009-12-18 11:27:56 -05:00
jeresig
99d83fbd6d
Bringing the effects module closer to being inline with the style guideline.
2009-12-18 11:16:26 -05:00
jeresig
b70872f70d
Renamed the 'fx' module to 'effects'. Should've been done a long time ago.
2009-12-18 11:01:19 -05:00
jeresig
9368b188c0
Removed jQuery.fn.contains - didn't match the :contains() selector and confused things. Thanks ajpiano for the tip.
2009-12-18 10:54:34 -05:00
Dave Methvin
fe7e2fee16
Ignore case of script tags to make sure they're removed. Fixes #5668 . Thanks to Motty/Fudgey for the report and Jitter for the patch!
2009-12-18 04:06:54 +08:00
Dave Methvin
b31b9bd756
Add new html5 input types to list of serializable types. Older browers handle these as type="text" so they should be consistently serialized on both old and new browsers. Fixes #5667 .
2009-12-18 04:05:45 +08:00
jeresig
6bc222e7a1
Removed 'abbr' from self-closing tags list. Fixes #5167 .
2009-12-17 15:04:07 -05:00
Dave Methvin
d85d366fbf
Default callbackContext to the $.extended ajax options for 1.3.2 compatibility, per #5654 .
2009-12-18 04:01:39 +08:00
Ben Alman
04b92e7831
Reorganized param code slightly to once again define buildParams as a named function expression, as moving it outside the param closure would necessitate moving and rewriting the add function as well.
2009-12-18 04:01:05 +08:00
Ben Alman
927e1966de
Further modified jQuery 1.4 .param() method to serialize arrays containing non-scalar values. PHP and jQuery BBQ can both deserialize these structures, while rack (as of 1.0.0) cannot.
2009-12-18 04:01:05 +08:00
jeresig
ed5731dcc4
Revert the changes from 65ebf57c1e
, they were ineffectual against IE's insanity: http://ejohn.org/files/bugs/fragment/ Used a different tactic instead (just don't return a fragment from .parent()). Fixes #5638 .
2009-12-17 14:17:05 -05:00
jeresig
892fb55547
Make sure that the node exists before attempting to clone.
2009-12-17 13:15:12 -05:00
jeresig
100ed68642
Stick with just getter/setters in attrFn.
2009-12-17 12:23:04 -05:00
jeresig
9a0174b057
Moved readyList check.
2009-12-16 23:09:55 -05:00
jeresig
f078e930ed
Reverted accidental commit in 5197ac9fc8
.
2009-12-16 16:54:21 -05:00
jeresig
9997620420
Retooled the arguments.callee-related changes in 98ce35d52b
to avoid re-declarations where possible.
2009-12-16 16:45:00 -05:00
jeresig
fe9333cc79
No need to use jQuery's event system for binding the onunload event in IE.
2009-12-16 15:42:03 -05:00
Batiste Bieler
649024909d
Enforce that hasClass and removeClass work even with tabs and endlines in class attributes. Fixes #5505 .
2009-12-14 16:24:28 -05:00
jeresig
b4b30cc683
Disable getting values using the .attr() function shortcut until the full implications of which can be explored.
2009-12-14 01:15:02 -05:00
John Resig
638c093b85
Fixed typo from commit 542099a278
.
2009-12-11 12:47:41 -08:00
John Resig
65ebf57c1e
Make sure that dynamically-created elements don't have a parent. Fixes #5638 .
2009-12-10 17:01:04 -08:00
Karl Swedberg
1bac61655b
combined jQuery.bind() and jQuery.one() to make them more DRY
2009-12-10 14:44:30 -08:00
John Resig
ecdcda870c
Missed the case of bind in the new attr multi-setter.
2009-12-10 14:03:24 -08:00
John Resig
474d814076
Moved some methods around inbetween core.js and traversing.js. Core methods shouldn't rely upon other modules (e.g. the selector engine) wherever possible.
2009-12-10 09:25:25 -08:00
John Resig
ede2f2c4f7
Made some minor formatting changes to the access function.
2009-12-10 09:07:19 -08:00
John Resig
80913618b0
Made the licensing verbiage a little more explicit. Thanks to Dan Montgomery for the suggestion.
2009-12-09 23:56:47 -08:00
John Resig
88572ee692
Make sure that the correct args are passed in to the filter callback (and by extension, the not callback). Fixes #5594 .
2009-12-09 22:03:14 -08:00
John Resig
a5f8a14411
Make sure that calling .width(num) or .height(num) on an empty set returns the empty set. Fixes #5600 .
2009-12-09 21:58:29 -08:00
John Resig
715d1c5a30
Rewrote .merge() (faster and less obtuse now). Fixed #5610 .
2009-12-09 21:43:20 -08:00
John Resig
f25eedf32a
Restrict the attr quick setters to only methods that specifically ask for the functionality. Fixes #5612 .
2009-12-09 21:28:33 -08:00
Yehuda Katz
1a4d1904ae
Fix up whitespace and a couple of glitches.
2009-12-09 21:17:10 -08:00
John Resig
b3cee01820
Merge branch 'master' of git@github.com:jquery/jquery
2009-12-09 20:59:12 -08:00
John Resig
cf72fba64f
Make sure that the defaultView exists before attempting to get at the computedStyle (makes it easier to hide items that don't have a view). Fixes #5619 .
2009-12-09 20:58:49 -08:00
Yehuda Katz
da51cd0e43
Add function values to addClass, removeClass, toggleClass, text, and removeAttr
2009-12-09 20:57:53 -08:00
John Resig
4e9fed3b16
Made sure that css('width') and height returned string values, not numerical values. Fixes #5627 .
2009-12-09 20:51:58 -08:00
John Resig
6bec6199c2
Work around a weird computed number issue in WebKit. Fixes #5145 .
2009-12-09 20:37:14 -08:00
John Resig
04524287d3
Switched jQuery() to represent jQuery([]) instead of jQuery(document).
2009-12-09 20:36:07 -08:00
John Resig
b846ad4ca0
Add a try/catch to handle the exception thrown by unloaded iframes in IE. Fixes #4280 .
2009-12-09 16:00:59 -08:00
John Resig
9d8bd161b6
Clarified the use of jQuery.browser and enforced jQuery.browser.firefox matching Firefox, after the discussion in 17791c9a3e
.
2009-12-09 15:07:16 -08:00
John Resig
3ec2f1aef6
Make sure that we don't try to trigger non-existant native events on applets, embed, objects, etc. as it'll cause an exception with Java applets. Fixes #2414 .
2009-12-09 14:49:31 -08:00
John Resig
1052792bb2
Fixed problems with removing live events. Fixes #4894 .
2009-12-09 14:43:53 -08:00
John Resig
86bbf9cf87
We have to access the native event handlers/triggers directly, otherwise they won't execute in most modern browsers. Fixes #5124 .
2009-12-09 13:53:07 -08:00
John Resig
5e2163085c
Make sure that document ready events, inside a document ready, are added to the queue rather than executing immediately. Fixes #5261 .
2009-12-09 13:45:06 -08:00
John Resig
4b70f006f5
Made .clone(true) also copy over element data. Fixes #4191 .
2009-12-09 13:28:58 -08:00
John Resig
f6a0bf6816
Added support for .data(Object), overwriting the existing data object. Fixes #4284 .
2009-12-09 13:16:18 -08:00
Yehuda Katz
4e27f17007
Landing in jQuery.contains, jQuery.fn.contains, and jQuery.fn.has support. Fixes #4101 .
2009-12-09 12:43:13 -08:00
John Resig
9e60fec46b
Make sure that an actual timeout is triggered (and not accidentally triggered from a setInterval). Fixes #5609 .
2009-12-09 08:09:41 -08:00
John Resig
17791c9a3e
Added in jQuery.browser.firefox, deprecated jQuery.browser.mozilla.
2009-12-08 22:52:32 -08:00
David Petersen
841f9ff7a1
Handle changing form attributes correctly when there is a child element with the same name. Fixes #4299
2009-12-09 14:43:55 +08:00
Dave Methvin
d3dc2d1234
Get browser version rather than rendering engine version.
...
Don't recognize Chrome as Safari.
See results of different userAgent strings here:
http://spreadsheets.google.com/ccc?key=0Aj5JJFjq9rZDdHdxXzRLVnY0SzFpRTBOUDc4VmhzRVE
2009-12-09 14:43:18 +08:00
John Resig
f5b649fafb
Make sure that events are cloned for wrap, fixes #2977 .
2009-12-08 11:21:24 -08:00
John Resig
98ce35d52b
Removed uses of arguments.callee from jQuery.
2009-12-07 16:42:25 -08:00
John Resig
00a0abb751
Moved .ready() to core.js from event.js.
2009-12-07 16:34:55 -08:00
John Resig
15f9d91c78
Fixed other nodeNode mistake, sigh.
2009-12-07 15:08:06 -08:00
John Resig
ed93204e10
This is why you don't do commits when you're tired. Fixing bugs from 5980292856
.
2009-12-07 07:48:15 -08:00
John Resig
afaae84a7a
support.js needs to come before event.js (also placed in a temporary setTimeout to delay the introduction of the ready in support - will remove when ready is moved to core.js, likely later today).
2009-12-07 07:45:20 -08:00
John Resig
97323d192f
Oops, missed a closing } from 7d36ccfa8e
.
2009-12-07 07:38:16 -08:00
James Padolsey
93fdbeb963
Added support for per-property easing
2009-12-07 16:11:46 +08:00
John Resig
62a34450c0
Added an extra function check to prevent crashes in Safari 2. Fixes #3039 .
2009-12-06 20:20:49 -08:00
John Resig
5980292856
Make sure that expando properties aren't set on embed, applet, or object elements. An uncatchable exception is thrown and we must avoid it. Fixes #1675 and #2349 .
2009-12-06 20:00:31 -08:00
John Resig
7d36ccfa8e
Broke out the logic for the bubbling change/submit events so that they aren't bound if they aren't used.
2009-12-06 18:20:08 -08:00
John Resig
542099a278
Make sure that we're doing proper focus bubble testing. Also simplified the logic for the IE focusin/focusout handling.
2009-12-06 18:02:58 -08:00
John Resig
19ad49e607
Use the isXML function from Sizzle.
2009-12-06 17:52:31 -08:00
John Resig
3f7fc25494
Use the getText utility function provided by Sizzle.
2009-12-06 17:47:41 -08:00
John Resig
2092789155
Added in support for injecting area elements into map elements. Fixes #4484 .
2009-12-06 17:26:39 -08:00
John Resig
fbc73d45b4
Added in support for $.ajax jsonpCallback (allowing you to specify the name of the callback method - and allowing you to avoid skipping the cache). Fixes #4206 .
2009-12-06 17:17:14 -08:00
John Resig
aea5b09195
Adding in cross-browser onbeforeunload support. Fixes #4106 .
2009-12-06 16:55:08 -08:00
John Resig
1fe9ff5482
Merge branch 'master' of git@github.com:jquery/jquery
2009-12-06 15:51:15 -08:00
John Resig
ebad701751
Split the queue code out from data.js into a dedicated queue.js file (also split tests accordingly).
2009-12-06 17:19:33 -05:00
John Resig
87ba780c69
Renamed isObjectLiteral to isPlainObject (makes more sense, per the suggestion of Michael Geary).
2009-12-06 17:11:51 -05:00
Dave Methvin
abbd2f4c3c
Fix regexp for $.trim so it doesn't whack embedded spaces.
2009-12-06 10:31:57 +08:00
Dave Methvin
628e1564c4
Fix for #4011 , crash when two text nodes are appended in IE.
2009-12-06 10:31:57 +08:00
jeresig
3c89e38fc2
Make sure that animated show resets the display correctly. Fixes #5130 .
2009-12-05 21:06:14 -05:00
lrbabe
2d27e053a0
Fix inverted 'orig' and 'fix' event in mouseenter/mouseleave special events.
2009-12-06 09:13:57 +08:00
Karl Swedberg
3afc6533e2
added semicolons to end of 2 statements (and fixed a misspelled word in comment)
2009-12-06 08:55:54 +08:00
jeresig
9c1db29a06
Adding in an extra check, per the comments in 25b0ba9f96
.
2009-12-05 18:06:27 -05:00
jeresig
2a6de9ab66
Make sure that the previous element is removed from the page before the next is inserted, in replaceWith. Using a variation of the patch by snaury. Fixes #2697 .
2009-12-05 15:30:36 -05:00
jeresig
aae0617c83
Made sure that css() in IE handles negative non-px values correctly. Fixes #3331 .
2009-12-05 15:12:02 -05:00
jeresig
6071e939c7
Minor syntactical changes to :visible and :hidden.
2009-12-05 15:02:45 -05:00
jeresig
b776e2b79a
Made sure that a null speed doesn't get passed around. Patch from daltonlp. Fixes #5557 .
2009-12-05 14:33:40 -05:00
John Resig
b24da33f52
Make sure that width or height don't animate to a negative value. Fixes #3881 .
2009-12-05 00:10:19 -05:00
John Resig
8d1efee316
Retooled the native triggering code, simplifying it.
2009-12-04 23:18:05 -05:00
John Resig
25b0ba9f96
Allow the user to explicitly set a content-type header even when there's no data being sent to the server. Fixes #1900 .
2009-12-04 21:20:58 -05:00
Yehuda Katz
d684122be0
Fixes a bug I introduced
2009-12-04 18:18:43 -08:00
jeresig
39a77c2d02
Switched to using slice instead of join to get the correct results.
2009-12-04 12:36:24 -05:00
Ben Alman
2b481b93cf
Landing Ben Alman's patch to add nextUntil, prevUntil, and parentsUntil. Also adds some tests for prevAll and nextAll, and fixes an test edge case in parents.
2009-12-04 12:28:47 -05:00
jeresig
bbd933cbfe
Added in the .delay() method for delaying the execution of queued functions and animations.
2009-12-04 12:06:47 -05:00
Justin Meyer
d42afd0f65
Adding in support for bubbling submit and change events, thanks to the patch by Justin Meyer. Includes a delegation test suite for manually testing to see if the events work as intended.
2009-12-04 11:28:50 -05:00
jeresig
c6a0211e57
Minor syntax changes to the winnow function.
2009-12-03 14:20:06 -05:00
jeresig
c2ebd09826
Use now() in support.js instead of getTime.
2009-12-03 13:59:19 -05:00
jeresig
47293ebe15
Removing unnecessary parens from :hidden.
2009-12-03 11:59:59 -05:00
jeresig
c3b2aa9928
Landed the rest of the liveHandler rewrite that takes advantage of the new closest multi-selector signature (sorry, accidentally committed some of it in the wrong commit: 4daae7a79f
).
2009-12-03 11:15:26 -05:00
jeresig
24e96ba22c
Re-worked the closest no-duplicate-selector code again to be more efficient.
2009-12-03 11:14:10 -05:00
jeresig
525bb27bc0
Prevent duplicate selectors from having to match in closest.
2009-12-03 11:05:12 -05:00
jeresig
4daae7a79f
No need to do the closest match if no selectors are passed in.
2009-12-03 10:51:04 -05:00
jeresig
e534a310c7
Added in the new .closest(Array) method, will be used to improve the performance of live filtering.
2009-12-02 19:05:51 -05:00
jeresig
62436f4b29
Extracted the logic for copying events from one jQuery set to another, makes it easier to work with disconnected DOM nodes.
2009-12-02 17:15:09 -05:00
jeresig
391f83b2a2
Fixed logic error in html method - support.leadingWhitespace shouldn't have been negated.
2009-12-02 15:20:33 -05:00
jeresig
ad4f28631a
Make sure that a DOM node isn't getting passed through (as is the case in IE, it has a toString of [object Object].
2009-12-02 14:59:19 -05:00
Yehuda Katz
64e4a879f9
Fix css("opacity") to not clobber other filters in IE. Closes #4707 .
2009-12-01 11:40:28 -08:00
jeresig
6798df54f4
Switched from using Git Submodules to just doing a straight clone of the QUnit and Sizzle directories. Works much better for what we want.
2009-11-30 15:45:16 -05:00
jeresig
e514e67cd2
Bringing Sizzle and QUnit up to date.
2009-11-30 15:09:50 -05:00
jeresig
3ec9f4990c
Made .show(null/undefined) and .hide(null/undefined) work the same as .show() and .hide().
2009-11-30 14:28:09 -05:00
jeresig
25c188b6d2
Fixed a problem with animations with a duration of 0 not working properly for hide and show.
2009-11-30 14:22:24 -05:00
jeresig
df6e02a4a7
Merge branch 'master' of github.com:jquery/jquery
2009-11-30 13:42:26 -05:00
jeresig
90ba57ce6d
Fixed bug with singleTag matching in core.js.
2009-11-30 13:42:19 -05:00
Yehuda Katz
17955cacf4
Fixes $.trim for closes #4980
2009-11-30 10:22:18 -08:00
Karl Swedberg
255068da33
added missing semicolons
2009-11-28 04:09:14 +08:00
Karl Swedberg
a5efe9d3a6
added missing radix parameter for parseInt()
2009-11-28 04:09:14 +08:00
Karl Swedberg
ddb86f8d5b
added curly braces around all if/else statements
2009-11-28 04:09:14 +08:00
John Resig
a7678267d8
Disable the X-Requested-With header to avoid preflighting remote POST requests. Fixes #4601 .
2009-11-25 13:29:34 -05:00
John Resig
0f6e9a8c69
Fixed spacing on the modified Ajax code.
2009-11-25 13:24:24 -05:00
Mark Gibson
ef819c91b9
Fixing endlines.
2009-11-25 12:09:53 -05:00
Robert Katic
0bb3998a6a
Re-adding zeros removed from slice calls in last commit.
2009-11-26 00:58:39 +08:00
Robert Katic
04dbdb7525
Corrected RegExp to match event namespaces. Fixes #5303 .
2009-11-26 00:58:39 +08:00
Robert Katic
ac00fe5bbb
Generic jQuery.merge and safer jQuery.makeArray(nodeList).
...
* Made jQuery.marge more generic supporting null and undefined values, and supporting array like objects as results. Fixes #5527 .
* Made jQuery.makeArray(nodeList) more safer using jQuery.merge internally. Fixes #5528 .
* Added a second "results" argument to jQuery.makeArray for internal usage to avoid intermediary arrays in init.
2009-11-26 00:56:49 +08:00
John Resig
b30af34f28
Added support for .text() on text nodes. Fixes #5525 .
2009-11-17 14:52:08 -05:00
Andrea Giammarchi
3a23a5c17d
Changed the === undefined ready event check to == null since frameElement is usually null and was skipping the normal line of checks.
2009-11-17 10:45:01 -05:00
Scott Gonzalez
9cd5866a29
Allowing falsy values to be passed as a speed for hide().
2009-11-13 12:23:39 +08:00
Scott Gonzalez
231c875678
Allowing falsy values to be passed as a speed for show().
2009-11-13 12:23:39 +08:00
Robert Katic
93be758de9
Made jQuery.extend(true, ...) to extend recursively only 'object literal' values.
2009-11-12 21:59:47 +08:00
Robert Katic
990d9ca1b0
Made isObjectLiteral to work correctly with custom objects with empty prototypes.
2009-11-12 21:59:47 +08:00
lrbabe
c07d15d5a2
Use array.indexOf if available (speeds up modern browsers). Thanks to lrbabe and Andrea for the patch. Fixes #5160 .
2009-11-11 15:15:58 -05:00
John Resig
5ac2e0837c
Added useMap and frameBorder IE support to attr. Fixes #4561 .
2009-11-11 15:11:58 -05:00
John Resig
357e2ae989
Added a check to make sure that a load request isn't done if the element doesn't exist. Fixes #4235 .
2009-11-11 14:55:32 -05:00
John Resig
c2101245c0
Pass in the XHR object as the third argument to the success callback (which helps $.get, $.post, and load). Fixes #3363 .
2009-11-11 14:29:01 -05:00
John Resig
7c4144fab3
Fixed the case where HTML that contained entities was being inserted as text strings instead of HTML. Thanks to dmethvin for the test case! Fixes #5483 .
2009-11-11 14:23:56 -05:00
John Resig
449e099b97
Landing tweak from 'haruka' that fixes non-pixel fontSize values in IE. Fixes #760 .
2009-11-11 14:17:16 -05:00
Rich Dougherty
bf71575bb4
Land Rich's fix for not using window.top to do frame detection. Fixes #4787 .
2009-11-11 13:56:39 -05:00
John Resig
c4c820efff
Made jQuery('<div/>') and jQuery('<div></div>') use the same code path (making the second one faster). Fixes #5293 .
2009-11-11 13:49:29 -05:00
John Resig
d933e9c26d
Opera 9.2 was interpreting .5 as 0.50, changing it to .55 lets the result be the same in all browsers: 0.55. Fixes #5344 .
2009-11-11 13:45:03 -05:00
John Resig
dee8e45ef3
Removed the use of this.length++ as it makes it hard to use the init method directly. Fixes #4955 .
2009-11-11 13:42:50 -05:00
Mr Speaker
5cb1163469
Making sure that you can bind multiple toggles to a single element without problems. Thanks to 'Mr Speaker' for the original patch. Fixes #5274 .
2009-11-11 09:46:24 -05:00
John Resig
4b55e94d08
Renamed isObject to isObjectLiteral to be more specific.
2009-11-10 23:07:05 -05:00
John Resig
262fcf7b7b
Require that, at least, document.body exists before firing the ready event. This may stop jQuery from working on pages that don't create a document.body (such as Safari, when no body exists) but considering that we've required a document.body since 1.3 and haven't broken any pages, this doesn't appear to be a pressing issue. Used the test case written by dmethvin to verify the bug and the fix. Fixes #4320 .
2009-11-09 13:47:53 +01:00
John Resig
24e18d4cae
Backing out commit 81bfd9b870
, read the ticket incorrectly - and seeing some of the other earlier tickets it's obvious that a more generic solution is needed. Thanks jdalton for the catch.
2009-11-09 13:30:33 +01:00
John Resig
4fd730dca7
Merge branch 'master' of git@github.com:jquery/jquery
2009-11-09 13:01:10 +01:00
lrbabe
d251809912
Making mouseenter and mouseleave work with .live().
2009-11-09 12:59:54 +01:00
lrbabe
9a69b2cf08
Cleanup bubbling focus and blur events
...
- Use cached event instead of jQuery.event
- Do not cache event.special if you use it only once
2009-11-09 19:41:43 +08:00
Robert Katić
e03aee1aa6
Made the closest method evaluate the selector with appropriate context.
2009-11-09 12:39:29 +01:00
rkatic
c2bbcd8833
Added comments to isObject.
2009-11-09 19:32:24 +08:00
John Resig
76f6f0d39d
Fixing spacing problems from rkatic's patches.
2009-11-07 17:40:47 +01:00
rkatic
3dc5bc5a8b
Make liveHandler to use jQuery.lastCloser and speed up internal sorting.
2009-11-08 00:37:05 +08:00
rkatic
0f03c7489f
Store last closer value to jQuery.lastCloser instead of using data API.
2009-11-08 00:36:44 +08:00
John Resig
3106039aa8
Made sure that animate callbacks get executed even when no properties are passed in. Fixes #5459 .
2009-11-07 17:22:35 +01:00
John Resig
b0fe380cf8
Make .add() take an optional context and - if a context is specified in the root selector - use that as the base context.
2009-11-07 16:43:31 +01:00
John Resig
ef05f44cce
Comment nodes are discarded from a merge, for no apparent reason. Fixes #5438 .
2009-11-07 16:15:33 +01:00
John Resig
6a722e251d
jQuery.ajax modified the passed-in object only to help test the code - this shouldn't occur. Fixes #5439 .
2009-11-07 16:08:07 +01:00
John Resig
81bfd9b870
Make sure that document.body exists, at least, in IE before the ready event is fired. Fixes #5443 .
2009-11-07 16:00:43 +01:00
John Resig
513053d62b
The complete event wasn't getting called on local file 404s. Thanks to 'mrspeaker' for the patch. Fixes #5468 .
2009-11-07 14:59:47 +01:00
John Resig
9a371e2d93
Fixed the case where getComputedStyled was assumed to exist if getBoundingClientRect did (which isn't the case on the Playstation 3). Fixes #5467 .
2009-11-07 14:57:27 +01:00
visionmedia
50cf4351a6
Consistant splits using " " instead of ","
...
This was used in several other areas, and IMO is easier to read
and since nothing is multi-word then we misewell use " "
2009-10-27 08:40:59 +08:00
John Resig
81f65ce339
Pull in the Sizzle library dynamically using a submodule and make it part of the jQuery build process.
2009-10-26 18:23:31 -04:00
John Resig
bbffc99f7c
Moved a bunch of methods out of the jQuery-specific Sizzle code into more-appropriate files, in jQuery itself.
2009-10-26 18:07:57 -04:00
John Resig
bcbd06b66f
Removed the revision info and fixed the date pull to work against git log instead of SVN.
2009-10-23 03:25:40 -04:00
John Resig
098a2bb4d0
Fixed the cleaning method to support namespaced elements. Thanks to einaros for the patch recommendation. Fixes #5358 .
2009-10-12 16:26:01 +00:00
John Resig
4b5a680f77
Fixed == change in ready.
2009-10-08 18:13:07 +00:00
John Resig
69e6e53555
Adding in .unwrap() support, thanks to Ben Alman! Fixes #5191 .
2009-09-25 21:41:21 +00:00
John Resig
67d445a703
A follow-up to [6578] (which stopped adding expandos to elements that didn't have data). That broke jQuery.unique() (so we're now using the unique from Sizzle). Using Sizzle's unique (which also sorts in document order) changed how add, andSelf, parents, nextAll, prevAll, and siblings work. after and before were changed to not use .add() (in order to guarantee their position in the jQuery set). Also, jQuery.data(elem) was updated to return that element's data object (instead of its ID).
...
$("<div/>").after("<span/>")
=> [ div, span ]
(calling after on a disconnected DOM node adds the nodes to the end of the jQuery set)
$("<div/>").before("<span/>")
=> [ span, div ]
(calling before on a disconnected DOM node adds the nodes to the beginning of the jQuery set)
$("div").add("span")
=> [ div, span, span, div, span ]
(results now come out in document order)
$("div").find("code").andSelf();
=> [ div, code, code ]
(results now come out in document order)
Same goes for .parents(), .nextAll(), .prevAll(), and .siblings().
Exception: .parents() will still return the results in reverse document order.
jQuery.data(elem)
=> { object of data }
(no longer returns the unique ID assigned to the node)
2009-09-25 17:55:20 +00:00
Yehuda Katz
67089eedf6
Getting $.param working well; Patch by ben_alman
2009-09-17 22:37:19 +00:00
Yehuda Katz
45dfa3b0fc
Probably not the optimal solution, but tests pass.
2009-09-16 08:33:00 +00:00
Ariel Flesler
9ebb2fc654
jquery event: closes #5250 . bind(), unbind() and one() support Object Literals (needs some refactor though)
2009-09-16 02:19:18 +00:00
Brandon Aaron
97e134fe80
data should not add expando unless actually adding data
2009-09-15 21:14:08 +00:00
John Resig
24ffc395a7
Missing a var on a for loop, caused a variable to be leaked.
2009-09-15 21:09:46 +00:00
John Resig
e907b8769f
Missing a var on a for loop, caused a variable to be leaked.
2009-09-15 21:01:00 +00:00
Brandon Aaron
daffb954e3
offset is now a setter
2009-09-15 19:15:04 +00:00
Jörn Zaefferer
0b36b26259
fixed global variables introduced in for loop with missing var-keyword (detected via QUnit's no ?noglobals)
2009-09-15 17:39:21 +00:00
Ariel Flesler
5550356a12
jquery attributes: closes #5234 . attr() supports jQuery.fn methods.
2009-09-15 17:23:26 +00:00
John Resig
fc4c691534
Adding some fixes for commit [6537]. If there's leading whitespace, or if an exception is thrown by innerHTML, we need to use the old style method.
2009-09-15 16:46:15 +00:00
Ariel Flesler
cf8c1249d1
jquery ajax: addition for #2452 . Wasn't working correctly in some cases.
2009-09-15 16:45:37 +00:00
John Resig
7638fc5835
Fix for SVN rev [6537]. Events weren't being unbound correctly in Internet Explorer (cleanData wasn't handling malformed NodeList results correctly).
2009-09-15 15:56:18 +00:00
Ariel Flesler
5b9214e7d8
jquery ajax: closes #2452 . get() and post() weren't shifting all arguments correctly.
2009-09-15 15:28:28 +00:00
Ariel Flesler
183f37e4b4
jquery ajax: closes #4994 . Adding 'context' setting to $.ajax
2009-09-15 15:19:58 +00:00
Yehuda Katz
c4f144eeff
avoid creating a new data cache if we don't need one. Also, short-circuit the case where $.data is used to get the cache id
2009-09-15 07:59:53 +00:00
Ariel Flesler
19cd84cf32
jquery data: adding missing semicolons
2009-09-15 01:02:18 +00:00
Yehuda Katz
9b20eb4c85
Make jQuery.winnow a local function
2009-09-15 00:35:35 +00:00
Ariel Flesler
321267dcec
jquery fx: closes #2542 . show/hide(0, fn) wasn't calling the callback.
2009-09-15 00:32:13 +00:00
John Resig
3eb56b09b8
Another fix for [6537] - make sure that .innerHTML isn't used on non-HTML documents and that we only attempt to use .innerHTML on DOM Elements.
2009-09-14 23:20:23 +00:00
John Resig
766635e862
Fixed a bug introduced in SVN rev [6537] that caused XML-based fragment creation to fail, in IE.
2009-09-14 23:12:06 +00:00
Ariel Flesler
681f4fd3cd
jquery event: misc removal
2009-09-14 22:58:20 +00:00
Ariel Flesler
a273120291
jquery data: closes #5224 . Exposing the expando.
2009-09-14 22:34:04 +00:00
John Resig
173c1477ae
Added support for .before(), .after(), and .replaceWith() on disconnected DOM nodes. Fixes bug #3940 .
2009-09-14 22:09:42 +00:00
Ariel Flesler
bca8225413
jquery event: fixes #4989 . blur and focus events now bubble and can be handled using live().
2009-09-14 22:04:22 +00:00
Brandon Aaron
f3474c00cd
fix for #5198 , event memory leak limited to IE only via conditional compilation
2009-09-14 21:14:15 +00:00
Brandon Aaron
4a3c4c86c9
fix for #5017
2009-09-14 20:55:40 +00:00
Ariel Flesler
36ebb4f75e
jquery ajax: Misc rename
2009-09-14 19:57:49 +00:00
Ariel Flesler
0790989eb6
jquery core: Fixed #5202 . Fixing selector generation when a manipulation function receives a jQuery object.
2009-09-14 18:03:18 +00:00
Ariel Flesler
66c58e9db6
jquery core: removing the body optimization, as it is then handled by $("TAG").
2009-09-14 17:33:15 +00:00
Ariel Flesler
9e1a955aab
jquery core: commenting the new access function.
2009-09-11 17:47:40 +00:00
Ariel Flesler
d1285504fb
jquery core: Closes #5189 . Added a generic function to handle getting/setting key-value/setting a hash.
2009-09-09 21:14:28 +00:00
Ariel Flesler
aadc268abf
jquery core: fixes 5187. getElementsByTagName optimization was breaking $('div').live()
2009-09-09 16:50:58 +00:00
Ariel Flesler
bf230ffb6a
jquery core: closes #5186 . getElementsByTagName optimization was breaking the selector attribute.
2009-09-09 16:33:16 +00:00
John Resig
9de120e6d7
Added support for .eq(-N), .first(), and .last(). Fixes #2164 and #4188 .
2009-09-09 00:21:21 +00:00
John Resig
4ea4fad090
Optimize jQuery() for the case $("TAG").
2009-09-08 04:26:47 +00:00
John Resig
1e750a00e9
Use the native Array indexOf method if it exists, for jQuery.inArray.
2009-09-08 01:45:11 +00:00
John Resig
96dd06ea50
Removed jQuery.className.(has|remove|add) in favor of .addClass/removeClass/hasClass. Also rewrote the functions for additional performance.
2009-09-08 01:07:50 +00:00
John Resig
520f1a2684
Broke the logic for .clean() wrap out into a separate, static, data structure. Also improved the performance of .html() looking for the case where .innerHTML can be used without problems. Also tweaked some cases where cleanData() was used, no need to use jQuery selectors in these cases.
2009-09-07 20:55:36 +00:00
John Resig
9d8d74569c
Split out the fragment-building code from domManip. Switched core.js to using that instead. Also moved the standalone tag detection to $(...) for performance.
2009-09-07 18:58:01 +00:00
John Resig
b7d4e0e46c
Added an optimization for the case where $("body") is used.
2009-09-07 17:20:38 +00:00
Yehuda Katz
50d78e7658
Adds nested param serialization; Closes #4201 (by merbjedi)
2009-09-02 05:16:21 +00:00
John Resig
569c8b45c0
Fixed a bug with the isXMLDoc test - also made sure that isXMLDoc was handling the case where documentElement is undefined (which only occurs on HTML documents in IE).
2009-08-27 20:07:45 +00:00
John Resig
957cd6fb2a
Tweaked the isXMLDoc iframe test case to test the document, not the body element (which doesn't exist in IE). Also made the isXMLDoc code handle cases where elem is null, undefined, etc.
2009-08-27 19:22:48 +00:00
John Resig
f52c4a3d5f
If the XHR object no longer exists assume that the request was aborted.
2009-08-26 17:39:52 +00:00
John Resig
bddd1837bb
Moved exposing window.jQuery and window.$ to the end of the jQuery file (helps some compatibility cases with older version of Prototype). Fixes ticket #4834 .
2009-08-10 21:22:31 +00:00
John Resig
d6991fa273
Added support for .closest(filter, DOMElement). Fixes #4072 .
2009-07-28 12:28:59 +00:00
John Resig
61b18c866c
Backing out commit #6507 - causes too many problems.
2009-07-28 12:22:10 +00:00
John Resig
b7a3b220a8
Fix some missing braces in core.js.
2009-07-27 20:48:42 +00:00
John Resig
18a6fbbb6a
Added an improvement to quickExpr and some more tests for jQuery('html'). Fixes #4979 .
2009-07-27 20:47:32 +00:00
John Resig
8c18dcdeb0
Make sure payload is sent for PUT requests. (Thanks alx). Fixes #4971 .
2009-07-27 19:02:40 +00:00
John Resig
255a293cda
Shortened the isXMLDoc code, based upon recommendation from Andrea.
2009-07-27 13:21:19 +00:00
John Resig
2cd9ee3510
Added an extra documentElement check to isXMLDoc for IE - and added a number of unit tests for isXMLDoc. Fixes #4833 .
2009-07-27 13:02:41 +00:00
John Resig
cae93c39eb
Implemented support for .context limited .closest() calls. Fixes #4072 .
2009-07-25 21:31:59 +00:00
John Resig
343b0936a4
Fix for animating hyphenated CSS properties. Fixes #4156 .
2009-07-25 20:56:15 +00:00
Brandon Aaron
fd0bf5d6ed
Fix for #4972 . Dreamweaver CS4 crashes on offset module. Thanks mike.helgeson
2009-07-25 16:08:18 +00:00
Brandon Aaron
3d8ceaf2f2
revision 6494 accidentally reverted some changes to offset module
2009-07-25 16:04:30 +00:00
Brandon Aaron
cafd392af0
add scrollTop/Left tests and fix for IE
2009-07-24 22:32:53 +00:00
John Resig
26eda09892
Changed .get(-Number) to use .slice() instead of .toArray() (which doesn't take any arguments). Follow-up from commit [6484].
2009-07-23 22:38:29 +00:00
John Resig
9c9dd7cede
Fix for incorrect options being selected (noticed same problem with radio/checkbox and fixed it there, as well). Fixes #4962 .
2009-07-23 22:16:29 +00:00
John Resig
0a6c5205d2
Make sure that at least one argument is provided to .slice(), in accordance with the spec. Fixes jQuery bug #4942 .
2009-07-23 13:22:55 +00:00
John Resig
b964e56946
Optimizing isXMLDoc.
2009-07-22 17:30:17 +00:00
John Resig
6fc57be843
Support dynamically loaded copies of jQuery using document ready. Fixes #4889 .
2009-07-22 15:03:23 +00:00
John Resig
fe80b5af45
Make sure that the script is removed only if it's actually in the page still. Fixes #4934 .
2009-07-22 14:38:21 +00:00
John Resig
7e06b9b70f
Tweaked the detach addition in commit [6474].
2009-07-21 15:57:51 +00:00
Yehuda Katz
7a67f8897d
Adds detach()
2009-07-21 09:17:33 +00:00
John Resig
29ff710c9b
Made some syntax tweaks to core.js.
2009-07-19 19:55:21 +00:00
John Resig
b953c1d50a
Saved some references to native methods, instead of re-referencing them on every call.
2009-07-19 19:50:45 +00:00
John Resig
03de2cb5e7
Moved some RegExp in core.js, goes toward #4111 .
2009-07-19 19:47:30 +00:00
John Resig
eaca153aea
Moved the RegExp in ajax.js out from inline, goes towards ticket #4111 .
2009-07-19 19:44:15 +00:00
John Resig
5272ed28bc
Made a number of syntax tweaks to ajax.js.
2009-07-19 19:37:11 +00:00
John Resig
fa2d663639
Did some cleaning up of ajax.js and fixed a bug from commit [6457].
2009-07-19 19:03:18 +00:00
John Resig
81985c7878
Fixed a typo with commit [6457].
2009-07-19 17:02:01 +00:00
John Resig
7175b2ffab
Removing extraneous closing ). Fix for [6463].
2009-07-19 16:21:08 +00:00
John Resig
627a32cea2
Broke out some of the inline RegExp from css.js. Goes towards fixing #4111 .
2009-07-19 16:13:45 +00:00
John Resig
4d1f15c351
Fixed various formatting issues in css.js.
2009-07-19 16:08:17 +00:00
John Resig
f57d93bf18
Move cases of .replace(re, Function) out from inline (to avoid being redeclared on every use). Fixes #4114 .
2009-07-19 15:57:43 +00:00
John Resig
0ac9898d6b
Fixed typo in commit #6461 .
2009-07-19 15:51:00 +00:00
John Resig
6d23f2fd81
Made more formatting changes to manipulation.js. Also moved all inline RegExp into a top declaration.
2009-07-19 15:48:30 +00:00
John Resig
ec7fdf3723
Tweaked formatting of src/manipulation.js.
2009-07-19 15:29:03 +00:00
John Resig
48e9a39995
Standardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923 .
2009-07-19 13:32:53 +00:00
John Resig
0d5c3a68a0
Standardizing on .test() and .exec() - moving away from using .match() for RegExp. Fixes jQuery bug #4113 .
2009-07-19 13:21:51 +00:00
John Resig
a3b8ac413f
Rewrote .offsetParent() to work against the full jQuery set, added tests. Fixes #4922 .
2009-07-19 13:04:18 +00:00
John Resig
f0681d98fe
Made a number of stylistic changes to the offset code (braces, declarations, etc.).
2009-07-19 12:53:39 +00:00
John Resig
9d46c0ebb4
Switching to use a better check for if the node is a document.
2009-07-18 19:44:15 +00:00
Brandon Aaron
4edbff9fc1
fix for #4906
2009-07-17 21:08:13 +00:00
Yehuda Katz
1a7f72e7fe
Add test for jQuery(jQueryObj) cloning and simplify new get() code
2009-07-17 17:33:44 +00:00
Yehuda Katz
88bd74c732
jQuery objects have a default length of 0. Simplifies $() some.
2009-07-17 01:47:26 +00:00
Ariel Flesler
a38a5cd531
jquery core: Simplifying isEmptyObject() and adding tests.
2009-07-16 15:16:44 +00:00
Yehuda Katz
991d039b62
Refactor queueing system to allow auto-dequeuing to use dequeue directly and
...
therefore require dequeue to always leave the element it has dequeued on
the queue.
- In the fx queue, a progress sentinel is added when a queue element
is dequeued.
- The sentinel is ignored when dequeue is called explicitly
- When adding a new element to the fx queue, queue() checks if
the progress sentinel is present. If not, it calls dequeue()
2009-07-16 07:32:39 +00:00
Yehuda Katz
190812c3be
Refactor jQuery.data a bit to reduce property lookups
...
- Also added jQuery.isEmptyObject
2009-07-16 07:32:31 +00:00
Yehuda Katz
d36d224cc5
Implemented .data() to get the entire data object. Closes #4284
2009-07-16 07:32:25 +00:00
Yehuda Katz
87869b8b81
Unify .not and .filter ( resolves #4200 ).
...
- Both now support Function, Element, Selector, and Arrayish (including jQuery object)
2009-07-16 07:32:11 +00:00
Yehuda Katz
c10f87120f
jQuery.extend(true, Object, Object) copies custom objects correctly.
...
- Also update jQuery.isObject to handle this case correctly
2009-07-16 07:32:03 +00:00
Yehuda Katz
8d52c27808
jQuery.extend(true, Object, Object) copies objects with length keys correctly
2009-07-16 07:31:55 +00:00
Yehuda Katz
e532dfe522
Add support for .get(-Number) Closes #4188
2009-07-16 07:31:41 +00:00
Yehuda Katz
e124fec5e9
Make toArray an alias for .get(). Closes #3999
2009-07-16 07:31:32 +00:00
John Resig
c5315f6687
Scope 'document' locally (also useful for sandboxing). Patch from Andrea Giammarchi. Fixes bug #4905 .
2009-07-15 12:35:57 +00:00
John Resig
7a04d1da54
We only support wrapping the first element around an element (all others are ignored). Fixes ticket #4903 .
2009-07-14 23:43:58 +00:00
John Resig
991dafae16
Fixed wrapping of elements that hold text nodes. Thanks to David Flanagan for the patch. Fixes #4902 .
2009-07-14 23:28:07 +00:00
John Resig
c3c94823f2
Fixed the handling of .status == 304 in Opera (it always returns 0). Also silently "pass" in Opera 9.6 (which is unable to send the correct headers with setRequestHeader). Follow-up to bug #4764 .
2009-07-14 21:13:23 +00:00
Yehuda Katz
89dc1e0143
clearQueue and next should now work with default fx on all browsers
2009-07-13 22:21:40 +00:00
Yehuda Katz
72bb9dfe28
Fix dangling comma of death in data.js
2009-07-13 19:24:44 +00:00
Yehuda Katz
3595102154
Add tests for replaceAll(fn) and wrap(fn) -- mark wrapAll and wrapWithin as TODO
2009-07-12 21:08:54 +00:00
Yehuda Katz
7d7a960035
Support for .foo(Function) and testing. TODO: More tests
2009-07-12 20:19:43 +00:00
Yehuda Katz
e8eff25f3b
Added test for css(String, Function) and css(Object) where values are Functions; fixed css(Object)
2009-07-12 18:31:26 +00:00
Yehuda Katz
d857315967
Add clearQueue for clearing non-fx queues
2009-07-12 15:14:01 +00:00
Yehuda Katz
89b4bc53ca
Added a next() shortcut for queues
2009-07-12 14:31:32 +00:00
John Resig
5b84c7c45c
IE doesn't seem to like caching fragments that have options in them. Ticket #4883 .
2009-07-11 15:23:18 +00:00
John Resig
0c4418bbc4
Limit domManip caching to strings < 512 characters long. Ticket #4883 .
2009-07-11 14:50:59 +00:00
John Resig
2a268f5f4b
Fixes regression in .attr(), patch by David Flanagan. Fixes #4884 .
2009-07-11 13:57:38 +00:00
John Resig
8db967e9d5
Added caching to domManip. Fixes #4883 .
2009-07-11 13:49:46 +00:00
John Resig
fd2a2fed84
Optimized jQuery(Element) to not call jQuery() twice.
2009-07-11 13:44:44 +00:00
Brandon Aaron
bbf3334db1
reverting sizzle updates from previous commit, appears i had an outdated version
2009-06-23 18:14:57 +00:00
Brandon Aaron
de07ebc1a0
fix for #4512 and minor sizzle updates
2009-06-23 18:11:09 +00:00
Ariel Flesler
c6b9654ea8
jquery core: Closes #2827 . jQuery.each iterates over functions
2009-06-20 15:51:19 +00:00
Brandon Aaron
ee34b6982a
fix for #3533 , triggering an event with a colon in the name on a table no longer throws an error in IE
2009-06-17 02:31:45 +00:00
John Resig
28ab4d3224
Adding support for etags in $.ajax() - and simplified the if-modified-since implementation. Thanks to Lawrence for the patch! Closes ticket #4764 .
2009-06-15 13:36:12 +00:00
Ariel Flesler
6faf75fb98
jquery fx: Exposing the ticking function
2009-06-02 02:14:58 +00:00
John Resig
45729831b1
Removed some cases of strict errors.
2009-05-20 21:52:47 +00:00
John Resig
90a87c03b4
Switched to using new Function instead of eval for handling JSON parsing (Fixes bug #4680 ). Added support for JSON.parse, if it exists (Fixes bug #4429 ).
2009-05-20 21:28:48 +00:00
John Resig
a0451f162e
Did some light reordering of the jQuery definition. Moved window and undefined to exist in intro/outro.
2009-05-20 21:12:08 +00:00
Brandon Aaron
b97b886fcd
fix :hidden and :visible selectors. fixes #4512
2009-05-18 15:36:36 +00:00
Brandon Aaron
e10e625bf4
fix for #4183
2009-05-16 20:23:58 +00:00
Brandon Aaron
4a99fcf6e4
fix remove and empty to work properly in IE when an element with the id of length exists. fixes ajax event hanlders in test suite from firing multiple times because they did not get cleaned up.
2009-05-16 19:32:16 +00:00
Brandon Aaron
fd281e493d
fix for #4397
2009-05-16 14:45:46 +00:00
Brandon Aaron
ed087197ce
tidy up fix for #3981 , thanks matt kruse
2009-05-14 18:46:58 +00:00
Brandon Aaron
ec3ebd3e8a
opacity is now retrieved from stylesheet in IE. fixes #3981
2009-05-14 14:44:31 +00:00
Brandon Aaron
b763cc6602
fix regression in removing live events caused by r6324
2009-05-12 15:43:51 +00:00
Ariel Flesler
d075072768
jquery event: misc change
2009-05-10 14:38:35 +00:00
Brandon Aaron
09b59038a0
unused, left-over code from r6344
2009-05-07 18:09:17 +00:00
Brandon Aaron
811891785f
.bind() now accepts an optional thisObject as the last argument which is used to change the value of this in event callbacks. fixes #3699
2009-05-07 00:50:28 +00:00
Brandon Aaron
8f042d8be3
fix for #4234 . hover can take one function to use for both enter and leave.
2009-05-06 02:17:24 +00:00
Brandon Aaron
3a9c827bf8
fix for #3286
2009-05-06 01:24:22 +00:00
Brandon Aaron
31b573185b
fix :hidden selector that was accidentally reverted in previous commit, also fixed tests for :hidden selector in IE6
2009-05-04 00:19:57 +00:00
Brandon Aaron
d72b8307de
fix memory leak in IE
2009-05-04 00:05:04 +00:00
Ariel Flesler
3a80de1c7a
jquery core: $() -> $(document) and $(undefined) -> $([]). Removed a duplicated block.
2009-05-03 15:57:25 +00:00
Brandon Aaron
e45b41602f
make sure toggleClass does not delete classNames when forcefully removing classes and they are already removed
2009-05-02 22:35:39 +00:00
Brandon Aaron
5e6e53835e
toggleClass can now toggle multiple classNames (space seperated list) and toggle the whole className. fixes #3825 .
2009-05-02 21:14:38 +00:00
Brandon Aaron
ffd457d456
index now works in reverse when passed a selector or undefined. fixes #3971
2009-05-02 19:22:55 +00:00
Brandon Aaron
cbda6c541b
fix global event triggering that i broke in r6323
2009-05-01 00:59:27 +00:00
Brandon Aaron
96fd5f18d4
special event refactor left over code
2009-05-01 00:36:21 +00:00
Brandon Aaron
c6db93c373
fix for #2620
2009-05-01 00:21:29 +00:00
Brandon Aaron
a4b8fed8ad
only copy guid from handler to modifiedHandler if it does not already have one
2009-05-01 00:02:51 +00:00
Brandon Aaron
aef1989ba7
live event handlers now receive data from trigger, fixes #4532 , thanks nbubna
2009-04-30 21:50:15 +00:00
Brandon Aaron
71efbdd3b2
refactor specialAll into add and remove hooks for existing special events, live now accepts optional data param like bind, fixes #4612 and #4613 , thanks to Mike Helgeson
2009-04-30 21:44:25 +00:00
Brandon Aaron
287ecdbf67
event clean up
2009-04-30 01:26:09 +00:00
Brandon Aaron
851846aabe
.unbind() without any arguments now also unbinds namespaced events. fixes #4609 and #4241
2009-04-29 21:45:58 +00:00
Brandon Aaron
1bd4325cb9
fixing a few more memory leaks in IE
2009-04-22 20:00:30 +00:00
Brandon Aaron
432ea4ca6c
offset returns null for window and document elements. fixes #4136 again
2009-04-22 05:29:01 +00:00
Brandon Aaron
6a049246a1
fix for #4216 . css now ignores negative numbers for width and height when passed an object of props and vals.
2009-04-22 05:23:53 +00:00
Brandon Aaron
8be5792975
fix for #3546 . css now works with other windows than just the one it was loaded in.
2009-04-22 04:39:44 +00:00
Brandon Aaron
f5690995dd
fix for #4268 . bind now works with iframe windows. thanks tr4nslator
2009-04-22 04:18:53 +00:00
Brandon Aaron
3715d73f79
fix for #2911
2009-04-22 02:31:29 +00:00
Brandon Aaron
6a12363f29
remove radix param for parseFloat calls
2009-04-22 01:34:13 +00:00
Brandon Aaron
2adb9b2a0f
width, height, scrollLeft, and scrollTop now work with windows and documents other than just the one it was loaded in (like iframes and popups)
2009-04-22 00:55:44 +00:00
Brandon Aaron
a0d079f430
clean up offset. #4456 thanks pbcomm
2009-04-21 19:19:28 +00:00
Brandon Aaron
17841ea244
actually don't need to null out as much as i thought i did to fix that memory leak
2009-04-21 19:09:47 +00:00
Brandon Aaron
92a076cb2f
fixing memory leaks in IE
2009-04-21 18:46:39 +00:00
John Resig
2764127335
Unified the formatting of core.js. === or !== are used wherever appropriate, syntax has been normalized, braces are added in all cases, and jQuery() now returns an empty set.
2009-03-31 17:35:20 +00:00
Brandon Aaron
2937d645cb
fix for #4439 , offset.initialize can cause the page to jump
2009-03-30 07:59:31 +00:00
Brandon Aaron
611d24086c
fix for #4378 , base tag causes javascript error in IE when loading cross-domain JS via ajax
2009-03-27 18:20:57 +00:00
Brandon Aaron
f8ef75eb91
remove trailing spaces
2009-03-23 01:55:17 +00:00
Brandon Aaron
d7d908b05a
decoupling styles retrieval from the attr method
2009-03-22 23:25:03 +00:00
Brandon Aaron
9476530fa1
moving some vars from manipulations.js to attributes.js
2009-03-22 15:06:58 +00:00
Brandon Aaron
a974b255c3
fix for #4399 , removing unused variables
2009-03-22 04:24:40 +00:00
Brandon Aaron
30e760b63f
fix for #4189 , live/die now work with contexts other than just document
2009-03-20 03:10:07 +00:00
John Resig
dae96f552e
Added some more information to the unload event cleanup.
2009-03-19 15:16:02 +00:00
Brandon Aaron
10303c37a1
fix for #4115
2009-03-19 03:17:38 +00:00
Brandon Aaron
c0cdbf8b94
fix for #4263 , better support for nested fixed position elements
2009-03-19 02:54:57 +00:00
Brandon Aaron
7c04a64016
breaking jquery out into smaller modules. added attributes.js, manipulation.js, and traversing.js
2009-03-18 21:15:38 +00:00
Brandon Aaron
2c31a1624f
fix for #4374 , gap in :hidden, :visible logic
2009-03-18 17:55:07 +00:00
Brandon Aaron
62a251a0cf
fix for #4204 , fadeTo shows hidden elements before animating
2009-03-18 14:58:06 +00:00
Brandon Aaron
ace13387c8
fix for #4074 , pass context to jQuery.clean for jQuery.clone
2009-03-18 02:48:32 +00:00
Brandon Aaron
e73990a566
fix for #3688 , setting type attribute on button causes IE to throw error
2009-03-17 22:27:25 +00:00
Brandon Aaron
aabf635cfe
using parseFloat for offset and position methods and removed num helper method
2009-03-17 21:07:11 +00:00
Brandon Aaron
a37cccc882
return null when no matched elements exist for offset and position
2009-03-17 20:50:17 +00:00
Brandon Aaron
36b4a9ba33
some clean up in the offset method
2009-03-17 20:43:46 +00:00
John Resig
26731d475b
Backed out commit [6260], was causing too many problems. We'll have to bite the bullet and assume that the incoming result set has array methods. Un-fixes jQuery bug #4250 .
2009-03-17 20:39:29 +00:00
Ariel Flesler
2d4755a0fb
jquery dimensions: removed redundant code
2009-03-06 04:23:44 +00:00
Ariel Flesler
ece001f139
jquery core: Fixed a typo in a comment, closes #4294 .
2009-03-05 13:36:12 +00:00
John Resig
6914fc2969
Removed the objectAll check from jQuery.support, was causing problems with broken ActiveX controls. Fixes bug #4017 .
2009-02-28 20:28:45 +00:00
John Resig
f1f5cd9f6a
Simplified the structure of the .css() and .attr() methods (reducing the number of calls). Need to optimize $.css/$.curCSS/$.attr still. Fixes #4269 .
2009-02-28 20:23:48 +00:00
John Resig
1c8c3883a9
Moved to a generic solution for copying methods over for querySelectorAll-using browsers.
2009-02-27 15:20:59 +00:00
John Resig
985856b823
No longer use arguments.callee or RegExp (use new RegExp, instead) for ES 3.1 and Caja compatibility. Fixes jQuery bug #4251 .
2009-02-26 18:00:41 +00:00
John Resig
410e13b400
As it turns out, the context was being started at a higher root than needed - fixing this speeds up > selectors.
2009-02-26 01:15:54 +00:00
John Resig
58235cc38e
Removed the need for the results set to have array methods. Resolves jQuery bug #4250 .
2009-02-25 18:41:29 +00:00
John Resig
f094c803de
Made some changes to how .find() works, inlined the duplicate check - should change other methods to act similarly. Goes towards fixing #4240 .
2009-02-25 18:29:18 +00:00
John Resig
4bbb70b4eb
Simplified the isXML function, no need to use recursion.
2009-02-25 15:37:09 +00:00
John Resig
1c5db3baba
Expose the sort/unique code from Sizzle as Sizzle.uniqueSort().
2009-02-25 15:19:08 +00:00
John Resig
85e0945718
Cut down on some more function calls for jQuery(...). Everything points back to the same root jQuery(document) object now. Going towards ticket #4240 .
2009-02-25 14:23:25 +00:00
John Resig
041fd5f2b5
Reduced the number of function calls required for .find() (single element root), optimized some calls to jQuery() as well. Goes towards fixing #4240 .
2009-02-25 04:57:00 +00:00
John Resig
9c0ddfa2ad
Landed some improvements for improving the performance of ID-rooted queries (e.g. '#foo p'). Fixes jQuery bug #4236 .
2009-02-25 04:08:04 +00:00
John Resig
cb3f842c88
Overhauled the .remove() and .empty() methods to be much more efficient. Fixes bug #4222 .
2009-02-23 16:32:45 +00:00
Ariel Flesler
48164ee603
jquery event: Fixing event.currentTarget for live().
2009-02-23 13:27:48 +00:00
John Resig
883450b702
Tagged the Sizzle 1.0 release.
2009-02-20 19:52:38 +00:00
John Resig
a37ca9e905
Made sure that .remove now uses multiFilter. Fixes bug #4205 .
2009-02-20 19:45:29 +00:00
John Resig
ca79d866fe
Made it so that search input elements are now serialized. Fixes bug #4107 .
2009-02-18 19:43:14 +00:00
John Resig
75a973da35
Made it so that appendTo, etc. return the inserted elements (thus using pushStack, as well). Fixes bugs #3966 and #4182 .
2009-02-18 16:29:43 +00:00
John Resig
3e46bce751
A speedup for .remove() (which also speeds up .html()). Fixes #4178 .
2009-02-18 02:40:55 +00:00
John Resig
d8b3bd700f
Switch to using createRange for element comparision instead of Array indexOf checks - thanks for the tip, Ioseb.
2009-02-17 17:51:50 +00:00
John Resig
4b7e1c906f
Brought back the compareDocumentPosition code. While it is redundant in Firefox it's much faster than using indexOf.
2009-02-17 17:43:05 +00:00
Ariel Flesler
0a1b0db347
jquery event: closes #4033 . e.currentTarget wasn't being enforced for native events (IE doesn't have it)
2009-02-17 12:38:16 +00:00
Brandon Aaron
72cf42bcbd
fix show issue in IE 6. "olddisplay" is sometimes undefined and IE 6 does not like setting style.display to undefined. also second for loop was mistakenly nested within the first for loop.
2009-02-16 21:20:51 +00:00
John Resig
048fc4555f
Added support for class selectors and class attribute selectors on XML documents. Fixes jQuery bug #4167 .
2009-02-16 18:23:59 +00:00
John Resig
8533da939d
Fixed an issue with :nth-child selectors embedded in :not() filters. Fixes jQuery bug #4156 .
2009-02-16 17:58:33 +00:00
John Resig
a720bb31ab
Changed the jQuery hidden/visible selectors to be a little more precise.
2009-02-16 15:55:06 +00:00
John Resig
e25c4a132f
Change the behavior of how :visible and :hidden work. :hidden is when an element is display none, a parent element is display none, or the element has a width of 0. :visible is when the element is not display none and all of its ancesotrs are not display none and its width is larger than 0. Fixes jQuery bugs #1349 , #3265 , and #3895 .
2009-02-16 15:52:15 +00:00
John Resig
5586fedf29
Fixed a bug with certain + selectors failing (Fixes jQuery bug #4023 ). Also tweaked the + and > functions a little bit.
2009-02-16 15:36:42 +00:00
John Resig
f0189d6181
Fixed the issue where weird characters were being used in ID selectors. Fixes jQuery bug #3913 .
2009-02-15 22:46:54 +00:00
John Resig
22c9c9b9d3
Make sure that [name=FOO] searches actually have the specified name (IE includes elements that have the ID, as well).
2009-02-15 22:33:19 +00:00
John Resig
20827707a9
Added fixes for two different :not() bugs. One with p:not(p.foo) failing and another with a weird combination of multiple selectors and filters. Fixes jQuery bug #4101 .
2009-02-15 21:13:33 +00:00
John Resig
87b3ea4bc9
Added some extra methods for making result set merging easier.
2009-02-15 18:09:34 +00:00
John Resig
21dde30348
Provide a graceful failover for [name=foo] queries that are looking for non-input/iframe/form elements. Fixes jQuery bug #4081 .
2009-02-14 22:24:55 +00:00
John Resig
782b4af76e
The compareDocumentPosition check was extraneous - indexOf works in all the other browsers that we need to support.
2009-02-14 22:18:02 +00:00
John Resig
6f4b08cdf9
Added support for sorting in Safari - when querySelectorAll isn't able to be used.
2009-02-14 18:10:45 +00:00
John Resig
d75c899fe7
Duplication checks are now handled directly in Sizzle, no need to do extra work in .find().
2009-02-14 17:25:33 +00:00
John Resig
7421f34284
Oops, the sourceIndex of the documentElement in IE is 1, not 0.
2009-02-14 17:06:30 +00:00
John Resig
e16c7fe0f8
Make sure that elements are returned in document order - and that the results are unique.
2009-02-14 16:59:10 +00:00
John Resig
848c45ea17
Added some significant speed-ups to height/width checks, thanks to some code and investigation by Mike Helgeson. Fixes #3082 .
2009-02-13 22:58:57 +00:00
John Resig
7f1eb1c14f
Landing a fix for a case where the animation timer wasn't getting stopped (thanks Arrix). Fixes bug #4001 .
2009-02-13 16:15:23 +00:00
John Resig
831b15b06c
Merging a bunch of changes back from Sizzle, by LosTFx.
2009-02-10 00:28:38 +00:00
John Resig
9aa0c69c43
Fixed bubbling of live events (if an inner element handles an event first - and stops progatation - then the parent event doesn't encounter the event). Thanks to Irae for the patch. Fixes bug #3980 .
2009-02-09 23:29:57 +00:00
John Resig
0ae78024c2
Added a performance improvement to .hide()/.show() that helps to prevent constant reflows from occurring. Fixes #4038 .
2009-02-09 15:58:12 +00:00
John Resig
136a459f4c
Optimized the clean() code to no longer use .trim() (speeds up working against long HTML in IE). Fixes #4037 .
2009-02-09 15:41:50 +00:00
John Resig
6b938e1c16
Removed use of .trim() in globalEval, fixes #4036 .
2009-02-09 15:35:33 +00:00
John Resig
b16da9d762
Reworked the attribute selection code to be able to select false-y values - and added some tests to verify that they work well against expandos.
2009-02-09 15:18:07 +00:00
John Resig
ab74ce7b57
match[4] is already saved in check - thanks Balazs.
2009-02-09 15:01:23 +00:00
John Resig
ce90accc58
Reworked the .clone() function in IE. Fixes jQuery bugs #3500 (jQuery expandos were causing extra elements to appear from using .html() cloning), #3254 (Mis-match in clone result length causes problem), and #2845 (Cloning an <object/> causes exceptions to be thrown).
2009-02-09 14:48:15 +00:00
John Resig
f38648c7cd
Added a fix for empty attribute selection values. Fixes jQuery bug #3990 .
2009-02-07 17:41:30 +00:00
John Resig
31597b7b3c
Adding a tweak to prevent layout breaks in the boxModel check on IE 6. Fixes bug #4014 .
2009-02-07 17:15:01 +00:00
John Resig
a894c60489
Stopped a memory leak on getScript calls. Fixes #3962 .
2009-02-07 16:57:59 +00:00
John Resig
2b7642cff0
Added logic for not using getElementsByClassName in different failure states. Fixes jQuery bugs #4058 and #4042 .
2009-02-07 16:54:11 +00:00
John Resig
ce00f88ae2
Added a fix, suggested by Diego, for IE firing the ready event too late. Fixes bug #3988 .
2009-01-28 22:38:00 +00:00
John Resig
d1a34f7908
Made the getAttribute check more explicit - comment nodes don't have getAttribute in XUL documents. Fixes jQuery bug #3870 .
2009-01-23 19:36:59 +00:00
John Resig
5143ecbc58
Bumping Sizzle version to 0.9.3.
2009-01-22 00:29:04 +00:00
John Resig
68b49cf427
Added some additional checks to make sure that the correct methods are being used in IE on XML documents.
2009-01-21 23:56:15 +00:00
John Resig
58a17e6e6d
Bumping the version of Sizzle up to 0.9.2.
2009-01-21 23:33:01 +00:00
John Resig
d45f193948
A follow-up for bug #3945 . ID selectors don't work in querySelectorAll on XML documents, so we just fall back to the normal engine.
2009-01-21 23:31:29 +00:00
John Resig
7d9d210540
Make sure that [name=foo] and #id selectors don't use the native methods on XML documents (since id and name attributes may not be defined by a DTD and will return nothing instead. Fixes jQuery bug #3945 .
2009-01-21 23:19:30 +00:00
John Resig
f9a5849723
Now handle the case where Safari's querySelectorAll fails on uppercase characters in quirks mode. Added a test to check for it and re-worked some of the existing tests to better handle document order issues. Fixes jQuery bug #3840 .
2009-01-21 22:57:07 +00:00
John Resig
9b3804a8ec
After discussing it with a number of users I've decided to revert the change to [name!=value]. It is now equal to :not([attr!=value]). Attempting to switch it to [attr]:not([attr!=value]) produced some really non-obvious results and confused users. Fixes jQuery bug #3884 .
2009-01-21 22:36:21 +00:00
John Resig
626961c4a5
CHILD positions were being cached improperly. Tweaked it and added a test to make sure it doesn't happen again. Fixes jQuery bug #3924 .
2009-01-21 22:01:50 +00:00
John Resig
00b70c7527
Landed a fix for timeouts not being aborted properly. Fixes jQuery bug #3874 .
2009-01-21 21:46:53 +00:00
John Resig
db10da345e
Fixed a missing semicolon. Fixes jQuery bug #3927 .
2009-01-20 19:58:19 +00:00
John Resig
0468e31bf7
Added a performance improvement to preFilter.CLASS from LosT on the Sizzle.js mailing list.
2009-01-20 19:47:15 +00:00
John Resig
aa7616cf9a
Added support for a[name^='foo['] style selectors. Fies jQuery bug #3928 .
2009-01-20 19:44:08 +00:00
John Resig
cd28922b78
Made sure that .removeClass(null) doesn't throw an exception. Fixes #3847 .
2009-01-20 17:33:25 +00:00
John Resig
a78557472c
Focused support of .live(). stopPropagation and stopImmediatePropagation are not supported - and do not do what the use would expect.
2009-01-20 17:25:37 +00:00
John Resig
28a1f02223
Re-worked the logic for where .selector and .context are added for ID selectors (especially ones that aren't found). Fixes jQuery bug #3833 .
2009-01-20 16:00:48 +00:00
John Resig
7647cebc39
Added some missing spaces - helps to calm XHTML error messages in Safari.
2009-01-20 15:46:40 +00:00
John Resig
04977b8ea2
Brought the logic for handling isXMLDoc over from Sizzle.
2009-01-19 23:17:30 +00:00
John Resig
6799982835
Made sure that a child element exists before the check is done, fixes jQuery bug #3870 .
2009-01-19 23:04:03 +00:00
Ariel Flesler
735d44f6df
jquery event: closes #3843 . Some events' timeStamp are wrong on Firefox, we don't rely on the native value anymore. timeStamp reflects object creation, not last event triggered.
2009-01-19 22:20:25 +00:00
John Resig
82e8d11c12
Re-worked the logic for handling isXML detection.
2009-01-19 21:57:18 +00:00
John Resig
96152559e0
Landing a fix for non-link anchor tabIndex (from scott.gonzalez). Fixes ticket #3916 .
2009-01-19 21:40:23 +00:00
John Resig
d6e541426d
Fixed the logic for determining if an XML file is being used. Fixes jQuery bug #3896 .
2009-01-19 18:56:02 +00:00
John Resig
8e8d7ade43
Merged some recent fixes in from Sizzle.
2009-01-19 18:09:11 +00:00
John Resig
c2fad371f1
Made the IE frameElement check more explicit. Fixes #3880 .
2009-01-17 22:04:23 +00:00
Ariel Flesler
34a9f8a210
jquery fx: sync animations were being left on jQuery.timers (double callback)
...
jQuery.timerId is now a local var and it's not null'ed anymore.
2009-01-14 23:09:52 +00:00
John Resig
6dc30ae7f6
Merged Sizzle changes back into jQuery.
2009-01-13 16:40:19 +00:00
John Resig
d5858c7cb8
Added a trailing / in the innerHTML support test to allow it to not
...
throw an error in XHTML documents. Fixes #3829 .
2009-01-13 15:08:11 +00:00
John Resig
944484c3fe
Merged in from Sizzle - a change to child filter selector logic.
2009-01-12 16:02:55 +00:00
John Resig
95094d1685
Merged in a fix from Sizzle for :not(:first).
2009-01-12 14:45:58 +00:00
John Resig
ea78377760
Only try to wrap the element if it's not disconnected, fixed #3828 .
2009-01-12 14:07:14 +00:00
John Resig
0c97178553
Fixed an issue with parentNode being accessed in attr() on disconnected DOM elements.
2009-01-12 14:00:35 +00:00
John Resig
1eae1541b8
Made a note about the push method.
2009-01-12 00:24:16 +00:00
John Resig
fa615bedd4
Made the case specific of the type attribute.
2009-01-11 21:22:37 +00:00
John Resig
2e42c5b044
Merging the latest from Sizzle.
2009-01-11 19:45:04 +00:00
John Resig
73ff49ac9a
Prevented non-script <script> blocks from executing, fixing #3733 .
2009-01-11 19:33:01 +00:00
John Resig
7346a476cc
Fixed boxModel support - is now computed with feature detection, rather than sniffing.
2009-01-11 16:17:20 +00:00
John Resig
0066ba3f82
.closest() with positional selectors wasn't worked as expected.
2009-01-10 20:30:03 +00:00
John Resig
b1018cad12
Landed a fix for when a DOM element gets accidentally removed by another live event handler. Thanks to Irae for the patches. Fixed #3820 .
2009-01-10 19:57:07 +00:00
John Resig
29bf601f34
Fixed an issue with script nodes being removed incorrectly, fixes #3737 .
2009-01-10 01:07:59 +00:00
John Resig
ec7baf230d
Didn't get specific enough with the proxy guid, fixes #3787 .
2009-01-09 22:14:48 +00:00
John Resig
d12e8a34e6
Made it so that you can bind a single function to multiple .live() selectors. Additionally, simplified the proxy code to provide a default proxy function.
...
Fixes #3787 .
2009-01-09 22:10:42 +00:00
Ariel Flesler
6898cd6d2a
jquery event: Fixes #3538 . unbind on many events was failing.
2009-01-08 22:21:16 +00:00
John Resig
c6f189ac73
Selector state wasn't being passed along on a cloned jQuery object.
2009-01-08 21:41:58 +00:00
Scott González
49d0d5b7a3
Fixed tabindex normalization so that elements that natively support tabbing, but don't have a tabindex explicitly set return 0 instead of undefined.
...
Removed jQuery.support.tabindex since we're only normalizing non-XML right now and all browsers support tabIndex for HTML documents.
2009-01-07 14:36:30 +00:00
John Resig
f9e0b1ed7a
Merged in a missing argument from Sizzle.
2009-01-07 14:31:28 +00:00
John Resig
d8706c5ac9
Landed a number of improvements to the selector engine. Results are auto-merged onto the jQuery
...
object, class filtering is now done inline, and not filtering is more efficient.
2009-01-07 00:13:57 +00:00
John Resig
cc70e03ec7
Made the .unqiue() within .find() optional (speeds up calls).
2009-01-06 16:17:50 +00:00
Ariel Flesler
2a81c359d5
jquery selector: Replacing {0,1} for ? in a regex.
2009-01-05 23:19:58 +00:00
John Resig
1822939000
Switched back to the old style of running embedded scripts (users who have duplicate runs will
...
have to deal with it another way).
2009-01-05 22:58:02 +00:00
John Resig
4503457616
Oops, order of operations.
2009-01-05 22:02:20 +00:00
John Resig
089da4ea77
Brought in a fix from Sizzle - IE doesn't have .contains on XML elements.
2009-01-05 21:59:07 +00:00
John Resig
69e86d4f98
The triggered flag was being set too early, which was preventing bubbling form working when a
...
native event existed.
2009-01-05 20:43:24 +00:00
John Resig
ebd9205fdb
Make sure that if no ownerDocument is available that we fall back to the node itself (likely the document).
2009-01-05 19:22:25 +00:00
John Resig
122b672f70
Landed cross-browser support for tabIndex, by Scott, closes ticket #3649 .
2009-01-05 17:34:42 +00:00
Ariel Flesler
42c99472cc
jquery event: Removed a needless if (old code)
2009-01-05 13:31:21 +00:00
Ariel Flesler
0c1653249a
jquery intro: looks nicer when built
2009-01-05 12:09:04 +00:00
Ariel Flesler
e216243a03
jquery fx: Shortening the code additions on [6037].
2009-01-05 12:05:38 +00:00
John Resig
558d03f24c
Merging from Sizzle (fixed a bug when querySelectorAll is used.
2009-01-05 02:45:20 +00:00
John Resig
cc66e6affe
Made hide, show, toggle, slideUp, slideDown, and slideToggle animate margins and paddings in addition to height, width, and opacity (results in a much-smoother animation).
2009-01-05 01:14:36 +00:00
John Resig
989667c9fd
Synced with the Sizzle repository.
2009-01-05 00:21:13 +00:00
John Resig
d1146aa7bf
.live("div div") was failing due to the extra space in the selector (which conflicted with multiple event binding in .bind).
2009-01-04 23:58:43 +00:00
John Resig
192d6cd4a3
Moved the copyright to the intro file, added a ! so that it passes through YUIMin untouched, and changed the Date and Revision so that they're now generated automatically based upon all of jQuery rather than just the core file.
2009-01-04 23:34:18 +00:00
Ariel Flesler
9472728bce
jquery event: event.stopImmediatePropagation() stops live handlers as well.
2009-01-04 22:32:18 +00:00
Ariel Flesler
83be3dca69
jquery core: Misc file size optimizations.
2009-01-04 22:25:46 +00:00
Ariel Flesler
ddec4fdc34
jquery ajax: File size optimization for compressed code.
2009-01-04 21:15:02 +00:00
Ariel Flesler
0eaead0b91
jquery core: Allowing whitespaces within the [6026] addition.
2009-01-04 21:09:03 +00:00
John Resig
434b87b8a2
Moved from the old JSMin to using YUIMin for compressing the jQuery source. Additionally landed some improvements from #3770 which dramatically reduce the filesize. The final minifed + gzipped size of jQuery went from 19817 bytes to 18063 bytes.
2009-01-04 15:29:27 +00:00
John Resig
c0294278db
Landed a proper fix for #3255 - which involves doing createElement instead of going through the normal clean method.
2009-01-03 00:51:07 +00:00
John Resig
cff37cc835
Hid an issue where Safari through an exception when a colgroup was created in jQuery.clean. Not completely sure what the cause is, yet.
2009-01-03 00:19:02 +00:00
Ariel Flesler
303ad32c74
jquery event: Misc, removed a commented line from last commit.
2009-01-02 23:44:06 +00:00
John Resig
b2583a7526
Fixed an issue that was introduced by [5743] (which didn't have a test case, either - that has been resolved). This fixed #3739 .
2009-01-02 23:32:10 +00:00
Ariel Flesler
b2552e6ea3
jquery event: Now using an internal argument to detect if bubbling on $.event.trigger. The other would fail when it receives an event object with target. Also, the target isn't nulled anymore.
...
In addition, there was a lot of code running O(n) during bubbling while not needed.
2009-01-02 23:07:16 +00:00
Ariel Flesler
989e3f61f7
jquery event: closes #3772 . The extra function on $.event.trigger isn't supported anymore.
2009-01-02 22:23:52 +00:00
John Resig
6a3d1a1e28
Fixed an issue with .not("#foo, bar") not working correctly, closes #3757 .
2008-12-31 19:21:24 +00:00
Ariel Flesler
c7a14f1391
jquery event: event.timeStamp wasn't being created when passing just the type to the constructor.
...
Misc: Simplified the readyList execution code.
2008-12-31 03:36:51 +00:00
Ariel Flesler
c0446c70d5
jquery event:
...
* event objects have isDefaultPrevented, isPropagationStopped and isImmediatePropagationStopped methods.
* Removed donative and dohandlers from $.trigger
* event.result carries the last returned data from a handler(not undefined).
* $.trigger doesn't keep bubbling if stopPropagation() is called.
* Same event object is used all along for global trigger
* Fixed the bug where target doesn't change when triggering on many elements.
* The data array on $.trigger was accumulating objects as it bubbles.
testrunner: adding more tests
2008-12-31 02:58:13 +00:00
Ariel Flesler
0a846e5be6
jquery event: removed the argument dohandlers from $.trigger. Uses another approach.
2008-12-30 23:29:14 +00:00
John Resig
4f7441910f
Made sure that return false works in .live() along with the event object being passed in as the first argument.
2008-12-30 20:45:33 +00:00
Ariel Flesler
a1ca9427ec
jquery data: Fixed a weird patch merging issue from [6011]
2008-12-30 02:43:14 +00:00
Ariel Flesler
a09dac4406
jquery data: Oops.. forgot to commit the new data module. This is part of [6010].
2008-12-30 02:40:04 +00:00
Ariel Flesler
4afa608351
jquery data: Closes #3539 . Exposed jQuery.queue. Moved all the data and queue functions to their own module. Made the dequeue function more generic(designed to be used on functions). Closes #3748 . Reverted a previous modification.
2008-12-30 02:31:26 +00:00
Ariel Flesler
1b0276dc57
jquery support: Closes #3758 , fixes a memory leak on IE. Thanks Choan Galvez.
2008-12-29 22:05:02 +00:00
Ariel Flesler
4f99e793fa
jquery event: jQuery.Event can be instantiated without the 'new' keyword.
2008-12-29 21:57:29 +00:00
Ariel Flesler
d37aeceb69
jquery core: Removed an orphaned line. Thanks mose.
2008-12-27 18:21:54 +00:00
Ariel Flesler
51428a3c9e
jquery core: Fixed a global var leak introduced by me on a recent commit.
2008-12-26 15:48:04 +00:00
Ariel Flesler
4ca4ce52f7
jquery event: Closes #3662 . Adds a jQuery.Event class. Makes trigger and fix simpler. Adds currentTarget attribute to event objects. Event object isn't passed as part of data.
2008-12-25 21:44:54 +00:00
Ariel Flesler
8cd50a398d
jquery core: Closes #3737 . Fixed a possible null dereference.
2008-12-25 21:20:41 +00:00
Ariel Flesler
eff400e44f
jquery selector: Removed a needless line (related to [5992]).
2008-12-25 21:09:08 +00:00
Ariel Flesler
e4d8365ec7
jquery fx: Fixed redundant code
2008-12-25 21:00:08 +00:00
Ariel Flesler
654d946ead
jquery fx: Closes #3219 . jQuery.fn.toggle can accept a boolean argument indicating show/hide.
2008-12-25 20:13:42 +00:00
Ariel Flesler
0a8f96ac3d
jquery core: Closes #1681 . jQuery.fn.toggleClass can accept a boolean argument indicating add/remove.
2008-12-25 20:12:18 +00:00
Ariel Flesler
0e3e470edc
jquery core: Closes #3255 . The div used in jQuery.clean is emptied in the end. Cleaning the parentNode's properties of the elements.
2008-12-25 19:47:56 +00:00
Ariel Flesler
4b25b147ab
jquery core: Closes #3641 . jQuery.merge stopped looping once a 0 was found.
2008-12-25 19:25:30 +00:00
Ariel Flesler
5459180728
jquery core: Closes #3666 . Removed old code.
2008-12-25 17:37:58 +00:00
John Resig
47aed822a4
Synced with Sizzle codebase (which removed the use of the caching code).
2008-12-22 16:41:14 +00:00
John Resig
77477d5634
Disabled native event triggering (and, thus, bubbling) for global events.
2008-12-22 14:47:34 +00:00
John Resig
c03a280155
Added a new liveQuery/event delegation hybrid method: .live and .die. Easily adapts event delegation to the jQuery style. $("div").live("click", fn); $("div > #foo").live("submit", fn); $("div").die("click");
2008-12-22 04:59:34 +00:00
John Resig
25885e07b2
Added support for bubbling triggered events.
2008-12-22 01:57:06 +00:00
John Resig
6b09032864
Added support for the new .closest() method (very useful for event delegation).
2008-12-22 00:52:53 +00:00
John Resig
c9dd5d9972
Oops, forgot to commit support.js.
2008-12-21 23:06:42 +00:00
John Resig
b850ab2b8e
Added the new jQuery.support object and removed all uses of jQuery.browser from within jQuery itself (while simultaneously deprecating the use of jQuery.browser).
2008-12-21 21:22:44 +00:00
John Resig
8ee1708ea9
Fixed an issue with domManip where the incorrect document was being used to create the document fragment.
2008-12-21 21:18:40 +00:00
John Resig
6048e40a45
Syncing Sizzle codebase.
2008-12-20 22:45:11 +00:00
John Resig
6f2f1830a4
Added a missing semicolon.
2008-12-20 14:39:36 +00:00
John Resig
c85243dfc4
Landing the new Sizzle selector engine. There'll need to be some later tweaks (to make the tests a little more pragmatic - especially for document order elements). But it appears to be passing well and that's enough. Closes #3563 .
2008-12-20 01:19:17 +00:00
John Resig
5c1725d689
Rewrote the hide and show methods to fix the issue with Safari not hiding distached elements. Fixed #1239 , #2233 , #3038 , #3343 , #3395 . They're also faster now, as well.
2008-12-19 18:21:12 +00:00
John Resig
18ee5a93a2
Fixed an issue with domManip where the incorrect clone fragments were being used for elements.
2008-12-19 06:58:18 +00:00
John Resig
80a6a91347
Fixed a problem with multi-namespaced events not targetting the correct functions for execution.
2008-12-19 06:49:44 +00:00
John Resig
62bd7e6817
Fixed an issue with how .data() was expecting output (trigger now returns exact output - or null if none is provided, which was tripping it up).
2008-12-19 06:49:03 +00:00
John Resig
132b8de614
Switched to using DOM Fragments in domManip.
2008-12-19 04:37:54 +00:00
John Resig
2875460f63
Added selector path logging (creates a trail that plugins can use).
2008-12-19 04:37:10 +00:00
John Resig
0935f4a0b1
Removing remaining strict-mode warnings.
2008-12-19 04:36:28 +00:00
John Resig
77344f4c50
Added support for multiple-namespaced events (in bind, trigger, and unbind).
2008-12-19 04:34:12 +00:00
John Resig
4c1e12e889
Simplifying the DOM ready code, no longer attempting to handle stylesheet loading. Closes #2614 .
2008-12-19 04:29:48 +00:00
Ariel Flesler
475f89b651
testrunner: adding tests for $.fn.hasClass.
2008-12-16 00:02:17 +00:00
John Resig
615a4ce1b4
IE doesn't care for boolean checks of .createElement - reverted back to using typeof instead.
2008-11-29 01:14:02 +00:00