Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add editorconfig, fix whitespace
  • Loading branch information
vvo committed Jan 5, 2014
1 parent b6578f1 commit f50ab78
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 34 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
@@ -0,0 +1,15 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

indent_style = space
indent_size = 4

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
1 change: 0 additions & 1 deletion lib/commands/click.js
@@ -1,7 +1,6 @@
var clickHelper = require('../helpers/click');

module.exports = function click (cssSelector, callback) {

var self = this;

this.element(cssSelector, function(err,result) {
Expand Down
22 changes: 11 additions & 11 deletions lib/commands/leftClick.js
@@ -1,12 +1,12 @@
var handleMouseButtonCommand = require('../helpers/handleMouseButtonCommand');

module.exports = function leftClick (cssSelector, callback) {

handleMouseButtonCommand.call(
this,
cssSelector,
'left',
callback
);

var handleMouseButtonCommand = require('../helpers/handleMouseButtonCommand');

module.exports = function leftClick (cssSelector, callback) {

handleMouseButtonCommand.call(
this,
cssSelector,
'left',
callback
);

};
22 changes: 11 additions & 11 deletions lib/commands/rightClick.js
@@ -1,12 +1,12 @@
var handleMouseButtonCommand = require('../helpers/handleMouseButtonCommand');

module.exports = function rightClick (cssSelector, callback) {

handleMouseButtonCommand.call(
this,
cssSelector,
'right',
callback
);

var handleMouseButtonCommand = require('../helpers/handleMouseButtonCommand');

module.exports = function rightClick (cssSelector, callback) {

handleMouseButtonCommand.call(
this,
cssSelector,
'right',
callback
);

};
22 changes: 11 additions & 11 deletions lib/protocol/buttonPress.js
@@ -1,11 +1,11 @@
var handleMouseButtonProtocol = require('../helpers/handleMouseButtonProtocol');

module.exports = function buttonPress (button, callback) {

handleMouseButtonProtocol.call(
this,
"/session/:sessionId/click",
button, callback
);

};
var handleMouseButtonProtocol = require('../helpers/handleMouseButtonProtocol');

module.exports = function buttonPress (button, callback) {

handleMouseButtonProtocol.call(
this,
"/session/:sessionId/click",
button, callback
);

};

0 comments on commit f50ab78

Please sign in to comment.