James Padolsey
93fdbeb963
Added support for per-property easing
2009-12-07 16:11:46 +08:00
jeresig
3c89e38fc2
Make sure that animated show resets the display correctly. Fixes #5130 .
2009-12-05 21:06:14 -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
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
Karl Swedberg
ddb86f8d5b
added curly braces around all if/else statements
2009-11-28 04:09:14 +08: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
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
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
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
343b0936a4
Fix for animating hyphenated CSS properties. Fixes #4156 .
2009-07-25 20:56:15 +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
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