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
Sean Catchpole
8ece9e8fb1
Absolutely position animations, damn my twichy fingers for commiting too soon.
2007-09-12 22:16:43 +00:00
Sean Catchpole
e4a62e4ec6
Animate should absolutely position if a number is passed (Ex: -700)
2007-09-12 21:04:10 +00:00
John Resig
a36771c83e
Fixed a bug that was occurring in the packed version of jQuery.
2007-09-10 19:43:58 +00:00
John Resig
97fe63cb48
Moved the fx queueing over to the new expando system.
2007-09-09 16:17:32 +00:00
John Resig
7e9d853154
.stop() wouldn't resume any queued animations.
2007-09-09 16:12:56 +00:00
John Resig
b4e23b5af0
Reorganzing the jQuery source (first phase).
2007-09-08 12:42:32 +00:00