Skip to content

Commit 21c4919

Browse files
vojtajinaIgorMinar
authored andcommitted
doc($browser): hide $browser.notifyWhenNoOustandingRequest method
Closes angular#506
1 parent 7147591 commit 21c4919

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Browser.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,9 @@ function Browser(window, document, body, XHR, $log) {
131131
};
132132

133133
/**
134-
* @workInProgress
135-
* @ngdoc method
136-
* @name angular.service.$browser#notifyWhenNoOutstandingRequests
137-
* @methodOf angular.service.$browser
138-
*
134+
* @private
135+
* Note: this method is used only by scenario runner
136+
* TODO(vojta): prefix this method with $$ ?
139137
* @param {function()} callback Function that will be called when no outstanding request
140138
*/
141139
self.notifyWhenNoOutstandingRequests = function(callback) {
@@ -476,7 +474,7 @@ function Browser(window, document, body, XHR, $log) {
476474
if (msie) {
477475
script.onreadystatechange = function() {
478476
/loaded|complete/.test(script.readyState) && done && done();
479-
}
477+
};
480478
} else {
481479
if (done) script.onload = script.onerror = done;
482480
}

0 commit comments

Comments
 (0)