Skip to content

Commit 259dbbb

Browse files
author
Niels Dequeker
committed
Fix JSCS issues
1 parent 83b6b86 commit 259dbbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/services/helper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@
345345

346346
// TODO: optimize this loop
347347
function findFirstParentElementWithAttribute(attributeName, childObj) {
348-
var testObj = childObj.parentNode;
349-
var count = 1;
350-
var res = testObj.hasAttribute(attributeName) ? testObj : null;
348+
var testObj = childObj.parentNode,
349+
count = 1,
350+
res = testObj.hasAttribute(attributeName) ? testObj : null;
351351
while (!testObj.hasAttribute(attributeName)) {
352352
testObj = testObj.parentNode;
353353
res = testObj;

0 commit comments

Comments
 (0)