File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,9 @@ webdriver.promise.Thenable.isImplementation = function(object) {
248
248
* in the pending state and may make a single transition to either a
249
249
* fulfilled or rejected state, at which point the promise is considered
250
250
* resolved.
251
+ *
252
+ * @param {webdriver.promise.ControlFlow= } opt_flow The control flow
253
+ * this instance was created under. Defaults to the currently active flow.
251
254
* @constructor
252
255
* @implements {webdriver.promise.Thenable.<T>}
253
256
* @template T
@@ -358,9 +361,6 @@ webdriver.promise.Promise.prototype.resolve_ = function(newState, newValue) {
358
361
*/
359
362
webdriver . promise . Promise . prototype . notifyAll_ = function (
360
363
newState , newValue ) {
361
- if ( newState === webdriver . promise . Promise . State_ . REJECTED ) {
362
- }
363
-
364
364
this . state_ = newState ;
365
365
this . value_ = newValue ;
366
366
@@ -1912,7 +1912,7 @@ webdriver.promise.Frame_.prototype.cancelRemainingTasks = function(reason) {
1912
1912
// the task is being canceled, however, we need at least one errback
1913
1913
// to prevent the cancellation from bubbling up.
1914
1914
child . listeners_ = null ;
1915
- child . thenCatch ( goog . nullFunction ) ;
1915
+ child . promise . thenCatch ( goog . nullFunction ) ;
1916
1916
child . cancel ( reason ) ;
1917
1917
}
1918
1918
} ) ;
You can’t perform that action at this time.
0 commit comments