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

fix(datepicker): commit safe apply on destruction #4079

Closed
wants to merge 1 commit into from

Conversation

wesleycho
Copy link
Contributor

  • Ensure we are not in a $digest before executing an $apply on scope destruction to avoid potential error

Plunker with fix in action here.

This fixes #4076.

- Ensure we are not in a $digest before executing an $apply on scope destruction to avoid potential error
@wesleycho wesleycho added this to the 0.13.3 (Performance) milestone Aug 2, 2015
@Foxandxss
Copy link
Contributor

I am not into hacking with $$phase to be honest, but it will improve the current solution indeed.

@wesleycho
Copy link
Contributor Author

Me neither, but I think it's legitimate here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Datepicker popup '$digest already in progress' on route change
2 participants