Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

removing $browser.defer(), add $defer mock, clear $defer #532

Closed
vojtajina opened this issue Aug 23, 2011 · 1 comment
Closed

removing $browser.defer(), add $defer mock, clear $defer #532

vojtajina opened this issue Aug 23, 2011 · 1 comment

Comments

@vojtajina
Copy link
Contributor

  • get rid off $browser.defer()
  • use $defer mock during testing
  • $defer should have API for clearing
  • scope.$apply() inside $defer callback should be optional, so that you can do low level stuff without triggering $apply
  • should emit 'asyncStart', 'asyncEnd' events for scenario runner

Related issue: #469

IgorMinar added a commit to IgorMinar/angular.js that referenced this issue May 23, 2012
$timeout has a better name ($defer got often confused with something related to $q) and
is actually promise based with cancelation support.

With this commit the $defer service is deprecated and will be removed before 1.0.

Closes angular#704, angular#532
@pkozlowski-opensource
Copy link
Member

This was fixed in 4511d39.

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

No branches or pull requests

2 participants