Skip to content

Commit f92e155

Browse files
committed
coffeescript updated?
1 parent 049f5ee commit f92e155

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

js/commands/saveElementScreenshot.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
* @param {Function} fileName - file path where the screenshot is saved
2727
*/
2828
var SaveElementScreenshotAction, easyimg, events,
29-
__hasProp = {}.hasOwnProperty,
30-
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
29+
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
30+
hasProp = {}.hasOwnProperty;
3131

3232
events = require('events');
3333

3434
easyimg = require('easyimage');
3535

36-
SaveElementScreenshotAction = (function(_super) {
37-
__extends(SaveElementScreenshotAction, _super);
36+
SaveElementScreenshotAction = (function(superClass) {
37+
extend(SaveElementScreenshotAction, superClass);
3838

3939
function SaveElementScreenshotAction() {
4040
return SaveElementScreenshotAction.__super__.constructor.apply(this, arguments);

js/commands/shell.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
* @param {String} command to execute on the shell
1111
*/
1212
var ShellAction, childprocess, events,
13-
__hasProp = {}.hasOwnProperty,
14-
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
13+
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
14+
hasProp = {}.hasOwnProperty;
1515

1616
events = require('events');
1717

1818
childprocess = require("child_process");
1919

20-
ShellAction = (function(_super) {
21-
__extends(ShellAction, _super);
20+
ShellAction = (function(superClass) {
21+
extend(ShellAction, superClass);
2222

2323
function ShellAction() {
2424
return ShellAction.__super__.constructor.apply(this, arguments);
@@ -27,7 +27,7 @@ ShellAction = (function(_super) {
2727
ShellAction.prototype.command = function(command, callback) {
2828
var windows;
2929
windows = /^win/.test(process.platform);
30-
childprocess.exec("" + command + " 2>&1", null, (function(_this) {
30+
childprocess.exec(command + " 2>&1", null, (function(_this) {
3131
return function(err, stdout, stderr) {
3232
console.log("Done " + command + ":\n" + stdout);
3333
if (typeof callback === "function") {

js/commands/waitForAttribute.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var WaitForAttribute, events,
2-
__hasProp = {}.hasOwnProperty,
3-
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
2+
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
3+
hasProp = {}.hasOwnProperty;
44

55
events = require('events');
66

@@ -26,8 +26,8 @@ events = require('events');
2626
* @param {Integer} [timeoutInMilliseconds] - timeout of this wait commands in milliseconds
2727
*/
2828

29-
WaitForAttribute = (function(_super) {
30-
__extends(WaitForAttribute, _super);
29+
WaitForAttribute = (function(superClass) {
30+
extend(WaitForAttribute, superClass);
3131

3232
WaitForAttribute.prototype.timeoutRetryInMilliseconds = 100;
3333

js/commands/waitForText.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var WaitForText, events,
2-
__hasProp = {}.hasOwnProperty,
3-
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
2+
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
3+
hasProp = {}.hasOwnProperty;
44

55
events = require('events');
66

@@ -25,8 +25,8 @@ events = require('events');
2525
* @param {Integer} [timeoutInMilliseconds] - timeout of this wait commands in milliseconds
2626
*/
2727

28-
WaitForText = (function(_super) {
29-
__extends(WaitForText, _super);
28+
WaitForText = (function(superClass) {
29+
extend(WaitForText, superClass);
3030

3131
WaitForText.prototype.timeoutRetryInMilliseconds = 100;
3232

js/commands/waitForTitle.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var WaitForTitle, events,
2-
__hasProp = {}.hasOwnProperty,
3-
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
2+
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
3+
hasProp = {}.hasOwnProperty;
44

55
events = require('events');
66

@@ -24,8 +24,8 @@ events = require('events');
2424
* @param {Integer} [timeoutInMilliseconds] - timeout of this wait commands in milliseconds
2525
*/
2626

27-
WaitForTitle = (function(_super) {
28-
__extends(WaitForTitle, _super);
27+
WaitForTitle = (function(superClass) {
28+
extend(WaitForTitle, superClass);
2929

3030
WaitForTitle.prototype.timeoutRetryInMilliseconds = 100;
3131

0 commit comments

Comments
 (0)