Permalink
Browse files

minor eslint fixes for scripts

  • Loading branch information...
1 parent 7c655a4 commit ce4fc754a578a11adbcba381fc04c8f8355ec41a @christian-bromann christian-bromann committed Sep 15, 2015
View
@@ -12,4 +12,4 @@ indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
-insert_final_newline = false
+insert_final_newline = true
@@ -8,7 +8,7 @@ import findStrategy from './findElementStrategy'
* @param {Function} callback
* @returns {string}
*/
-let createSelectorScript = function(fn, selectors, args) {
+let createSelectorScript = function (fn, selectors, args) {
let strArgs = []
let foundSel = []
@@ -61,7 +61,7 @@ let createSelectorScript = function(fn, selectors, args) {
* console.log(one, two, three); // 1 2 3
* }
*/
-var executeClientSide = function(fn, sArr, args) {
+var executeClientSide = function (fn, sArr, args) {
var cb = arguments[arguments.length - 1],
i = 0, sArgs = [],
use, value, xp, cs, tn,
@@ -140,4 +140,4 @@ var executeClientSide = function(fn, sArr, args) {
return fn.apply(window, parameter);
};
-export default createSelectorScript
+export default createSelectorScript
@@ -6,7 +6,7 @@
* @return {String} html source
*/
-let getHTML = function(elements, includeSelectorTag) {
+let getHTML = function (elements, includeSelectorTag) {
var ret = [];
if (elements.length === 0) {
@@ -20,4 +20,4 @@ let getHTML = function(elements, includeSelectorTag) {
return ret;
}
-export default getHTML
+export default getHTML
@@ -2,11 +2,11 @@
* helper function to get the viewport size of the browser
*/
-let getViewportSize = function() {
+let getViewportSize = function () {
return {
screenWidth: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),
screenHeight: Math.max(document.documentElement.clientHeight, window.innerHeight || 0)
};
}
-export default getViewportSize
+export default getViewportSize
@@ -6,7 +6,7 @@
* @see waitForVisible
*/
-let isWithinViewport = function(elements) {
+let isWithinViewport = function (elements) {
var db = document.body,
dde = document.documentElement,
result = [];
@@ -45,4 +45,4 @@ let isWithinViewport = function(elements) {
return result;
}
-export default isWithinViewport
+export default isWithinViewport
@@ -9,8 +9,8 @@
*/
/* global window */
-let newWindow = function(url, windowName, windowFeatures) {
- window.open(url, windowName, windowFeatures);
+let newWindow = function (url, windowName, windowFeatures) {
+ window.open(url, windowName, windowFeatures)
}
-export default newWindow
+export default newWindow
@@ -1,6 +1,6 @@
/* global window */
-let scroll = function(x,y) {
- return window.scrollTo(x,y);
+let scroll = function (x, y) {
+ return window.scrollTo(x, y)
}
-export default scroll
+export default scroll

0 comments on commit ce4fc75

Please sign in to comment.