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
Ariel Flesler
6faf75fb98
jquery fx: Exposing the ticking function
2009-06-02 02:14:58 +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
62a251a0cf
fix for #4204 , fadeTo shows hidden elements before animating
2009-03-18 14:58:06 +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
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
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
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
Ariel Flesler
e216243a03
jquery fx: Shortening the code additions on [6037].
2009-01-05 12:05:38 +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
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
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
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
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
d1f089952e
Made a mistake in the patch for #3618 , landing fix.
2008-11-18 06:00:34 +00:00
John Resig
ab551c2b14
Standardized the type checks across core. isFunction and isArray now use Object.prototype.toString to verify the type, .constructor use was removed in favor of typeof, typeof checks now use ===, undefined checks use === undefined. All of this is outlined in the new style guidelines: http://docs.jquery.com/JQuery_Core_Style_Guidelines#Type_Checks . Fixes bug #3618 .
2008-11-17 16:32:05 +00:00
Ariel Flesler
325755d4b3
jquery core: closes #3541 . Added isArray.
2008-10-29 02:01:22 +00:00
Ariel Flesler
30751dd9f1
jquery fx: closes #3496 . $.fx.off = true; turns off animations.
2008-10-22 15:23:37 +00:00
Ariel Flesler
4add9fa989
jquery fx: closes #3495 . Animations are synchronous when duration is 0.
2008-10-18 23:27:43 +00:00
Ariel Flesler
aacdeeb48d
jquery fx: closes #3128 . Saved some bytes when creating custom animations, using macros. Thanks Mike Helgeson.
2008-07-03 22:54:12 +00:00
Paul Bakaus
b5d65d4e49
fx: 1) patch from Ariel removes the need of adding properties like scrollTop and scrollLeft specifically to fx.step - The priority order is style[prop] ? style[prop] : elem[prop], 2) fixed the height/width case - it wasn't possible to animate obj.height/obj.width if there wasn't a style attr.
2008-06-24 10:00:42 +00:00
Ariel Flesler
faa502cbc0
jquery ajax: renamed $.fx.speeds.def to _default to match $.fx.step._default naming convention.
2008-06-20 16:56:25 +00:00
Ariel Flesler
6159593520
jquery ajax: making Paul's last change([5735]) shorter.
2008-06-20 16:20:20 +00:00
Paul Bakaus
91a84d233d
fx: animate() can now animate any property on a generic object or native wrapper (i.e. window.outerWidth)
2008-06-20 09:02:48 +00:00
Ariel Flesler
3b81847f35
jquery fx: removing a needless comment after the last commit.
2008-05-16 20:00:16 +00:00
Ariel Flesler
6b535eb79f
jquery fx: removing 2 unnecessary isFunction calls, options.complete is ALWAYS a function.
2008-05-16 19:51:34 +00:00
Ariel Flesler
3f5ff3097c
jquery: removing unnecessary trailing and leading spaces & tabs.
2008-05-13 01:45:58 +00:00
Ariel Flesler
20a7bff401
jquery event & fx: tidying some comments.
2008-05-13 01:42:35 +00:00
Ariel Flesler
99101e02f9
jquery fx & event: replaced the use of .apply(), where .call() could had been used.
2008-05-12 19:45:02 +00:00
Ariel Flesler
87758bbe69
jquery fx: adding jQuery.fx.def as default speed for animations
2008-05-02 14:12:26 +00:00
Ariel Flesler
17b1e407d1
mainly made the code shorter:
...
- removed some needless if's
- replace multiple "var x" for one, comma separated declaration.
- added a local fn called now() for the (new Date)s
- fixed the indentation of a block, and a typo in a comment.
- used fn instead of prototype where possible
- jquery fx: exposed the speeds hash as jQuery.fx.speeds.
Also fixed (again) line endings
2008-04-29 23:34:50 +00:00
Ariel Flesler
c3cbc5bf98
jquery event: jQuery.toggle can accept more than 2 functions, closes #2378
2008-04-29 21:35:35 +00:00
Ariel Flesler
25f9974cee
jquery core: simplified the code using the new jQuery.makeArray from [5314] where possible.
2008-04-24 21:46:22 +00:00
David Serduke
d36382e9a3
Fixed an edge case in show() where the css says the display should be none. In that case force 'block' so it will actually show.
2008-01-12 01:06:37 +00:00
David Serduke
1764027370
Fixed #2080 by removing the check for nodeType != 1. It was put in to limit the queuing to just dom objects (ie not text nodes and comment nodes), but the queuing functionality is being used more broadly than I realized so the check is now removed.
2007-12-20 18:55:43 +00:00
David Serduke
feb9051c0e
Fixed #1781 for warnings created on load by FF javascript.options.strict == true.
2007-12-16 01:03:50 +00:00
Brandon Aaron
b3ec8edddd
show is now element aware ( #960 )
2007-12-08 04:54:53 +00:00
David Serduke
ffbedf0262
Fixed #1039 and #1733 by going through the core API and making them text node and comment node safe.
2007-12-07 01:52:21 +00:00
David Serduke
5039a4bc5b
Added enchancement for #1994 by adding two parameters to .stop() which give additional functionality. The first parameter clearQueue will clear the queue on the necessary DOM elements so all animation will stop. The second parameter will cause the currently playing animation to immediately complete including reseting original styles on show and hide and calling the callback function. If no parameters are passed it will work as it always did.
...
While adding unit testing I noticed the stop() unit test wasn't working correctly because the element was hidden so I fixed it and added more unit tests around the new functionality. I also added a cursor:pointer to the css (because for a long time I didn't know they were clickable).
2007-11-30 21:36:49 +00:00
David Serduke
2ccd2cb36b
Fixed #1942 but running jQuery.css() before jQuery.curCSS(). This way when the property is width or height it gets the values through calculation instead of just css first. This appears to fix the problem in Opera without hurting any of the other browsers.
2007-11-27 23:58:07 +00:00
David Serduke
b9371a6ca4
Fix #1827 bug where extra setInterval()s can be called during animation.
2007-11-16 21:50:27 +00:00
David Serduke
0a0990485e
Fixed #1822 bug where queue() didn't always default to type 'fx'.
2007-11-16 18:23:59 +00:00
David Serduke
1d299d375b
Fix for #1823 bug in animate {queue:false} plus a unit test.
2007-11-16 17:49:12 +00:00
John Resig
5421dfdea9
Added a fix for bug #1751 , where the options getting overwritten for an animation was causing issues.
2007-10-18 00:30:37 +00:00
John Resig
f6a2e1734f
Fixed animating to 0% (Bug #1586 ).
2007-09-15 03:26:33 +00:00
John Resig
dbca9cbf62
Forgot the 'var' statement, causing variables to leak. (Bug #1592 )
2007-09-15 03:12:56 +00:00
John Resig
df246df2da
Convert relative animations to use -= and += (instead of just - and +, which conflicted with normal absolute animations). (Fixes bug #1607 ) Also fixed a bug in queue.
2007-09-15 02:40:42 +00:00
John Resig
41590d37e1
Fixed some bugs in how .queue() works (it wasn't handling the argument order correctly).
2007-09-14 17:47:01 +00:00