Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

fix(input): Add missing Polyfill for ng1.3 and fix tests. #9169

Closed

Conversation

topherfangio
Copy link
Contributor

Angular 1.3 apparently did not include the AnimateRunner.all() method. Grab it from latest 1.5.8 code and add to our 1.3 polyfills.

Additional, our $animateCss polyfill for 1.3 modifies the to and from options that are passed in and sets them to null. This was causing the tests to fail. Fix by keeping a cloned reference for test purposes.

Angular 1.3 apparently did not include the `AnimateRunner.all()`
method. Grab it from latest 1.5.8 code and add to our 1.3 polyfills.

Additional, our $animateCss polyfill for 1.3 modifies the `to` and
`from` options that are passed in and sets them to `null`. This was
causing the tests to fail. Fix by keeping a cloned reference for
test purposes.
@topherfangio topherfangio added needs: review This PR is waiting on review from the team P0: critical Critical issues that must be addressed immediately. labels Jul 28, 2016
@topherfangio topherfangio added this to the 1.1.0 milestone Jul 28, 2016
@epelc
Copy link
Contributor

epelc commented Aug 20, 2016

@topherfangio is this optional if you are using 1.5.x?

@topherfangio
Copy link
Contributor Author

@epelc This should only be included if your Angular version is < 1.4 (so 1.3 and earlier).

You having issues in 1.5?

@epelc
Copy link
Contributor

epelc commented Aug 22, 2016

@topherfangio I meant could we make this optional(along with any other polyfills) if we do not require them? Perhaps moving to some sort of angular-material.polyfills.js file would be good.

No issues. Just wanted to make the build size a little bit smaller for me and anyone else using a newer version of angular.

@topherfangio
Copy link
Contributor Author

@epelc Ah, gotcha. At the moment, no, we don't provide a way to easily remove them, but I'll chat with the team about it this next week and see what they say.

@epelc
Copy link
Contributor

epelc commented Aug 22, 2016

@topherfangio I made an issue for you to reference #9378

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team P0: critical Critical issues that must be addressed immediately.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants