1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-09-02 09:33:25 +02:00

More linting

This commit is contained in:
Antonio Laguna
2017-03-12 22:33:58 +01:00
parent a8031db1f2
commit a5cfa93eaa
2 changed files with 47 additions and 44 deletions

View File

@@ -12,8 +12,8 @@ export default class DOM {
* @param {string} tag The name of the tag of the needed element.
* @param {string} id The desired id for the element. It defaults to an
* empty string.
* @param {string} text The desired text to go inside of the element. It defaults
* to an empty string.
* @param {string} text The desired text to go inside of the element. It
* defaults to an empty string.
* @return {Element}
*/
static createNode(tag, id = '', text = '') {
@@ -62,7 +62,8 @@ export default class DOM {
};
const transitionNames = Object.keys(transitions);
for (let i = 0, length = transitionNames.length; i < length && !transitionEvent; i++) {
for (let i = 0, length = transitionNames.length;
i < length && !transitionEvent; i++) {
const transitionName = transitionNames[i];
if (typeof el.style[transitionName] !== 'undefined') {
@@ -91,7 +92,8 @@ export default class DOM {
};
const animationNames = Object.keys(animations);
for (let i = 0, length = animationNames.length; i < length && !animationEvent; i++) {
for (let i = 0, length = animationNames.length;
i < length && !animationEvent; i++) {
const animationName = animationNames[i];
if (typeof el.style[animationName] !== 'undefined') {