fix fastReset going undefined between sessions (fix #2087)

This commit is contained in:
Jonathan Lipps
2014-03-20 00:01:30 -07:00
parent c9fc1da595
commit 22912968d8

View File

@@ -24,6 +24,7 @@ var DT_IOS = "ios"
var Appium = function (args) {
this.args = args;
this.args.fastReset = !this.args.fullReset && !this.args.noReset;
this.serverArgs = _.clone(args);
this.rest = null;
this.webSocket = null;
@@ -34,8 +35,6 @@ var Appium = function (args) {
this.oldDesiredCapabilities = {};
this.session = null;
this.preLaunched = false;
this.fastReset = !this.args.fullReset && !this.args.noReset;
this.args.fastReset = this.fastReset;
this.sessionOverride = this.args.sessionOverride;
this.resetting = false;
this.defCommandTimeoutMs = this.args.defaultCommandTimeout * 1000;