-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Conversation
bf413c0
to
d8e9f08
Compare
It would be helpful it was possible to see how the tests have changed from before. |
e7dd45d
to
0e1c40d
Compare
|
||
function parseMaxTime(str) { | ||
var maxValue = 0; | ||
var values = isString(str) ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
str
is always a string so this test is not needed.
function blockTransitions(node, applyBlock) { | ||
var value = applyBlock ? 'none' : ''; | ||
var key = TRANSITION_PROP + PROPERTY_KEY; | ||
applyInlineStyle(node, key, value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to...
applyInlineStyle(node, [key, value]);
} | ||
|
||
function areAnimationsAllowed(element, parent, event) { | ||
var bodyElement = jqLite($document[0].body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't this be moved outside of the function (for performance reasons) ?
What are the implications ? Can the body really change ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
No time to look into the tests, but the (non-test) code and the whole re-organization looks absolutely fantastic. (Left a couple of inline comments that changed One...actualy two...more tiny things I would fix regarding the comments:
|
@matsko plnkr with modal works now! Awesome work! Would it help you if you one of us prepared a commit with all typo fixes that you can cherry-pick into your branch? |
@Narretz I think that is an excellent idea! |
@Narretz @petebacondarwin @gkalpak any typo fixes are good to go now. The PR has been updated with all the fixes that @gkalpak provided as well as the fixes that @IgorMinar suggested during our review.
We're almost there. Once the safari and IE-related unit tests are fixed and some extra docs are added then we're good merge. |
621dc47
to
06ccc5d
Compare
Not that it matters much (since there are several breaking changes already), but couldn't this one be avoided ? Does the order of the arguments really matter ? |
animateChildren = value; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point, if parentAnimationDetected === true
and animateChildren === false
, we could immediately return false. There is no need to keep looping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added. Thx.
889cd25
to
db2c8b5
Compare
OK @petebacondarwin @IgorMinar @Narretz @gkalpak we are finally ready to merge. All green. Tested properly. Let's go! |
10, 9 . . . (6 numbers later) . . . 2, 1 -----> 🚀 ✨ 👏 ✨ 👏 ✨ |
<div class="loader" ng-show="!media.loaded"> | ||
Loading | ||
</div> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's going on here? It doesn't seem right for this file to be in the root of the project.
e8f55ad
to
a2385bc
Compare
All of ngAnimate has been rewritten to make the internals of the animation code more flexible, reuseable and performant. BREAKING CHANGE: JavaSript and CSS animations can no longer be run in parallel. With earlier versions of ngAnimate, both CSS and JS animations would be run together when multiple animations were detected. This feature has now been removed, however, the same effect, with even more possibilities, can be achieved by injecting `$animateCss` into a JavaScript-defined animation and creating custom CSS-based animations from there. Read the ngAnimate docs for more info. BREAKING CHANGE: The function params for `$animate.enabled()` when an element is used are now flipped. This fix allows the function to act as a getter when a single element param is provided. ```js // < 1.4 $animate.enabled(false, element); // 1.4+ $animate.enabled(element, false); ``` BREAKING CHANGE: In addition to disabling the children of the element, `$animate.enabled(element, false)` will now also disable animations on the element itself. BREAKING CHANGE: Animation-related callbacks are now fired on `$animate.on` instead of directly being on the element. ```js // < 1.4 element.on('$animate:before', function(e, data) { if (data.event === 'enter') { ... } }); element.off('$animate:before', fn); // 1.4+ $animate.on(element, 'enter', function(data) { //... }); $animate.off(element, 'enter', fn); ``` BREAKING CHANGE: There is no need to call `$scope.$apply` or `$scope.$digest` inside of a animation promise callback anymore since the promise is resolved within a digest automatically (but a digest is not run unless the promise is chained). ```js // < 1.4 $animate.enter(element).then(function() { $scope.$apply(function() { $scope.explode = true; }); }); // 1.4+ $animate.enter(element).then(function() { $scope.explode = true; }); ``` BREAKING CHANGE: When an enter, leave or move animation is triggered then it will always end any pending or active parent class based animations (animations triggered via ngClass) in order to ensure that any CSS styles are resolved in time.
Closed via c8700f0 |
All of ngAnimate has been rewritten to make the internals of the
animation code more flexible, reuseable and performant.
BREAKING CHANGE: JavaSript and CSS animations can no longer be run in
parallel. With earlier versions of ngAnimate, both CSS and JS animations
would be run together when multiple animations were detected. This
feature has now been removed, however, the same effect, with even more
possibilities, can be achieved by injecting
$animateCss
into aJavaScript-defined animation and creating custom CSS-based animations
from there. Read the ngAnimate docs for more info.
BREAKING CHANGE: The function params for
$animate.enabled()
when anelement is used are now flipped. This fix allows the function to act as
a getter when a single element param is provided.
BREAKING CHANGE: In addition to disabling the children of the element,
$animate.enabled(element, false)
will now also disable animations onthe element itself.
BREAKING CHANGE: Animation-related callbacks are now fired on
$animate.on
instead of directly being on the element.BREAKING CHANGE: There is no need to call
$scope.$apply
or$scope.$digest
inside of a animation promise callback anymoresince the promise is resolved within a digest automatically (but a
digest is not run unless the promise is chained).
BREAKING CHANGE: When an enter, leave or move animation is triggered then it
will always end any pending or active parent class based animations
(animations triggered via ngClass) in order to ensure that any CSS
styles are resolved in time.