mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-12 09:57:13 +08:00
12 lines
264 B
JavaScript
12 lines
264 B
JavaScript
'use strict';
|
|
|
|
function $$AsyncCallbackProvider(){
|
|
this.$get = ['$$rAF', '$timeout', function($$rAF, $timeout) {
|
|
return $$rAF.supported
|
|
? function(fn) { return $$rAF(fn); }
|
|
: function(fn) {
|
|
return $timeout(fn, 0, false);
|
|
};
|
|
}];
|
|
}
|