Commit graph

98 commits

Author SHA1 Message Date
timmywil db437be6e3 Check classes passed for duplicates. Fixes #9499. 2011-06-07 21:00:44 -04:00
Mathias Bynens b43910a496 Landing pull request 352. Slightly improved defaultDisplay() and Throbber of Doom. Fixes #8994.
More Details:
 - https://github.com/jquery/jquery/pull/352
 - http://bugs.jquery.com/ticket/8994
2011-05-20 11:22:52 -04:00
timmywil 3486365062 Animation callbacks keep their place in the queue stack. Fixes #9220. 2011-05-13 11:56:55 -04:00
louisremi 521ae562da Landing pull request 374. .animate() Callbacks should fire in correct order (unit test included). Fixes #9100.
More Details:
 - https://github.com/jquery/jquery/pull/374
 - https://github.com/jquery/jquery/issues/9100
2011-05-10 11:22:12 -04:00
louisremi 076c347605 .animate() Callbacks should fire in correct order (fix #9100 + unit test) 2011-05-09 17:35:51 +02:00
timmywil 90f37aaf7a Call extend on prop to avoid changing original properties so that per-property easing is not lost in multiple animations with the same props 2011-05-07 21:26:02 -04:00
timmywil 8bb6e95b66 Set val before hide/show check and fix easing setting; also update attributes test for autofocus
- The object passed should not change so it can be used in future animates, updated src and tests accordingly.
2011-05-07 20:46:38 -04:00
Daniel Pihlstrom 3d1c27d52e Fix per-property easing. Fixes #9067 2011-05-07 19:28:07 -04:00
gnarf 31268449b9 Landing pull request 372. Test for numeric properties was using wrong variable. Fixes #9074.
More Details:
 - https://github.com/jquery/jquery/pull/372
2011-05-07 19:18:52 -04:00
timmywil 8d2d94cfba Fix test suite fails for hiding text nodes in F4 and IE9. Update for #6135. 2011-04-19 13:45:01 -04:00
timmywil 3aa46725ed Merge branch 'qunit_fixture' 2011-04-17 14:12:31 -04:00
timmywil 68cc3ad730 Update QUnit, fix visibility of #dl and pass JSLint in effects.js 2011-04-17 14:12:05 -04:00
John Resig 21c0be8496 Make sure that hide or show don't fail when operating on non-Element nodes. Fixes #6135. 2011-04-17 11:07:42 -07:00
louisremi bcc8187b05 undefined should be as good as null here 2011-04-15 16:33:21 +02:00
louisremi 7bc8227d29 typo 2011-04-15 15:30:19 +02:00
louisremi 7666c3ef9a remove more useless code. feels good. 2011-04-15 15:18:21 +02:00
louisremi eccf15be6c - merge master
- move private functions at the bottom
- remove duplicate code
- move more var at the top of their scope
- rewrite a loop to be more efficient
2011-04-15 14:44:55 +02:00
louisremi 7dc7070426 reduce function calls
simplify easing resolution code
+ some code cleanup
2011-04-14 15:21:08 +02:00
louisremi 8806435a77 Merge branch 'master' of http://github.com/jquery/jquery into effectsCleanup 2011-04-14 11:46:29 +02:00
rwldrn a76decc476 Ticket #8099 Performance tweaking, credits 2011-04-13 15:43:15 -04:00
rwldrn 59240d31c0 Ticket #8099 Updates per review 2011-04-13 13:58:17 -04:00
rwldrn 4fde550cb6 Ticket #8099 Conditional iframe approache, caches both iframe and iframedoc for reuse 2011-04-13 13:43:52 -04:00
rwldrn 81de96af74 Fixes #8099 using iframe to capture an element's real default display; suggested by lrbabe/louisremi 2011-04-12 18:57:14 -04:00
rwldrn 885b64d4e6 Fixes #8099 using iframe to capture an element's real default display; suggested by lrbabe/louisremi 2011-04-12 13:50:15 -04:00
rwldrn 7164615f67 Ticket 8099, Reattempt with iframe 2011-04-12 11:48:07 -04:00
louisremi 780b7983d0 Group all local functions at the top of the file and add comments 2011-04-11 19:01:04 +02:00
jaubourg 4c3aba9a15 Merge branch 'master' of github.com:jquery/jquery 2011-04-11 13:41:17 +02:00
jaubourg 3411d47a6a Adds _mark and _unmark as a mean to keep track of ongoing non-queued animations in fn.promise. 2011-04-11 13:40:14 +02:00
jeresig 56ffad2dad Merge branch '8101_lrbabe_requestAnimationFrame' of https://github.com/timmywil/jquery into timmywil-8101_lrbabe_requestAnimationFrame
Conflicts:
	src/effects.js
2011-04-10 17:27:34 -04:00
timmywil 791402b453 Separate raf function definition from passing it to requestAnimationFrame 2011-04-10 17:17:34 -04:00
jaubourg 2594a935de Applies exception in Style Guidelines regarding objects and functions when they are the last argument of a function call. 2011-04-08 17:41:14 +02:00
jaubourg 75a4bc4a4e Makes sure each animation tick has the same timestamp for all animations in the batch. 2011-04-07 05:07:20 +02:00
timmywil 9db18ddd84 Per rwaldron's request, added oRequestAnimationFrame as a possibility 2011-04-05 16:28:25 -04:00
timmywil fe3203bb5b Some adjustments and style edits on lrbabe's pull for requestAnimationFrame
- Moved support.js check to effects.js.  This is just an assignment to the function if it exists.  Removed string concatenations.

  + Still need to do the checks on window, but after that, window is no longer needed.

- Switched ternary to an if statmenet

- assigned timerId to a number rather than the function. I did perf tests to check which is faster.
2011-04-04 19:25:12 -04:00
louisremi c95ab2a39c first tick should not occur immediatly; no tick should happen after a stop()
+ comments
2011-04-04 15:46:37 -04:00
louisremi 15e34d1f07 reduce impact of requestAnimationFrame on incompatible browsers by minimizing number of lookups 2011-04-04 15:46:37 -04:00
louisremi 03e6f7235b there was no way to 'manually' stop an animation 2011-04-04 15:46:37 -04:00
louisremi 6de29b24b1 timerId has to be set to true, to avoid starting multiple animation queues 2011-04-04 15:46:37 -04:00
louisremi 933ea8c5fa 'this' is the window 2011-04-04 15:46:37 -04:00
louisremi f7ccec1b70 use requestAnimationFrame instead of setInterval for animations, when available. 2011-04-04 15:46:37 -04:00
louisremi 85d9343271 Fixes #7912. Make sure .cur() only returns 0 as fallback value when it needs to ("", auto, undefined, null).
This change makes .cur() more .cssHooks friendly. .cur() now returns the unmodified value by
.css() if it isn't a number, number-alike or a value that needs a fallback to 0.
This way fx.start doesn't need to be recalculated for complex values.
2011-02-17 17:26:23 +01:00
Anton M faa6fe32f7 Revert "Merge branch '8099' of https://github.com/rwldrn/jquery into rwldrn-8099"
This reverts commit bb9408516a, reversing
changes made to 3ad8dd242a.

Conflicts:

	src/effects.js
2011-02-15 22:30:34 +01:00
Anton M 6b08d88d04 Fix some whitespace issues. 2011-02-15 22:09:09 +01:00
Anton M 217a9919c3 Add missing semicolon. 2011-02-14 22:38:19 +01:00
jeresig bb9408516a Merge branch '8099' of https://github.com/rwldrn/jquery into rwldrn-8099 2011-02-14 12:36:49 -05:00
Anton M 659773348f Fix breaking test in Chrome. 2011-02-14 00:37:07 +01:00
Anton M c5edf982d5 Don't add "px" to unit-less properties when animating them. Fixes #4966. 2011-02-13 23:17:58 +01:00
rwldrn c67867ad0c Bug #8099 - Updates per review 2011-01-31 14:50:03 -05:00
rwldrn 0d2e4796dc Bug #8099 - Always restore to correct display value based on element's expected default display 2011-01-31 14:31:15 -05:00
Colin Snover 8e59a99e0a Change the way jQuery.data works so that there is no longer a chance of collision between user data and internal data. Fixes #6968. 2011-01-09 15:52:33 -06:00