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