Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIX: "setOneShotCallback" should return values.

  • Loading branch information...
commit 42f40bf507de77adcfd2e2673ee961bec556f44d 1 parent 222458f
@detro authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/session.js
View
4 src/session.js
@@ -206,8 +206,8 @@ ghostdriver.Session = function(desiredCapabilities) {
thisPage[callbackName] = function() {
// console.log("Invoking one-shot-callback for: " + callbackName);
- thisPage[callbackName] = null; //< once done, get rid of the handling
- handlerFunc.apply(thisPage, arguments); //< call the actual handler
+ thisPage[callbackName] = null; //< once done, get rid of the handling
+ return handlerFunc.apply(thisPage, arguments); //< call the actual handler
};
},
Please sign in to comment.
Something went wrong with that request. Please try again.