mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-24 13:53:43 +00:00
doc($browser): hide $browser.notifyWhenNoOustandingRequest method
Closes #506
This commit is contained in:
parent
714759100c
commit
21c4919a5b
1 changed files with 4 additions and 6 deletions
|
|
@ -131,11 +131,9 @@ function Browser(window, document, body, XHR, $log) {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @workInProgress
|
* @private
|
||||||
* @ngdoc method
|
* Note: this method is used only by scenario runner
|
||||||
* @name angular.service.$browser#notifyWhenNoOutstandingRequests
|
* TODO(vojta): prefix this method with $$ ?
|
||||||
* @methodOf angular.service.$browser
|
|
||||||
*
|
|
||||||
* @param {function()} callback Function that will be called when no outstanding request
|
* @param {function()} callback Function that will be called when no outstanding request
|
||||||
*/
|
*/
|
||||||
self.notifyWhenNoOutstandingRequests = function(callback) {
|
self.notifyWhenNoOutstandingRequests = function(callback) {
|
||||||
|
|
@ -476,7 +474,7 @@ function Browser(window, document, body, XHR, $log) {
|
||||||
if (msie) {
|
if (msie) {
|
||||||
script.onreadystatechange = function() {
|
script.onreadystatechange = function() {
|
||||||
/loaded|complete/.test(script.readyState) && done && done();
|
/loaded|complete/.test(script.readyState) && done && done();
|
||||||
}
|
};
|
||||||
} else {
|
} else {
|
||||||
if (done) script.onload = script.onerror = done;
|
if (done) script.onload = script.onerror = done;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue