提交 a4c3909b 编写于 作者: K Kamran Ahmed

Refactor and IE compatibility

上级 dbbfe60b
......@@ -9,6 +9,7 @@
"no-plusplus": "off",
"no-cond-assign": "off",
"func-names": "off",
"no-continue": "off",
"no-bitwise": "off",
"class-methods-use-this": "off",
"prefer-destructuring": "off",
......
......@@ -6,7 +6,7 @@
"types": "types/index.d.ts",
"scripts": {
"start": "node server.js",
"build-demo": "NODE_ENV=production webpack --config webpack.config.dev.js",
"build-demo": "NODE_ENV=production webpack --config webpack.config.demo.js",
"build": "webpack --config webpack.config.prod.js"
},
"bugs": {
......
......@@ -2,7 +2,7 @@ const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const opn = require('opn');
const config = require('./webpack.config.dev');
const config = require('./webpack.config.demo');
const PORT = 3000;
const HOST = 'localhost';
......
......@@ -219,9 +219,9 @@ export default class Element {
this.node.classList.remove(CLASS_POSITION_RELATIVE);
const stackFixes = this.document.querySelectorAll(`.${CLASS_FIX_STACKING_CONTEXT}`);
stackFixes.forEach((stackFix) => {
stackFix.classList.remove(CLASS_FIX_STACKING_CONTEXT);
});
for (let counter = 0; counter < stackFixes.length; counter++) {
stackFixes[counter].classList.remove(CLASS_FIX_STACKING_CONTEXT);
}
}
/**
......
......@@ -248,14 +248,14 @@ export default class Driver {
defineSteps(steps) {
this.steps = [];
steps.forEach((step, index) => {
const element = this.prepareElementFromStep(step, steps, index);
for (let counter = 0; counter < steps.length; counter++) {
const element = this.prepareElementFromStep(steps[counter], steps, counter);
if (!element) {
return;
continue;
}
this.steps.push(element);
});
}
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册