Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throws an error in JSLint and also in JSHint #141

Closed
wants to merge 2 commits into from
Closed

Throws an error in JSLint and also in JSHint #141

wants to merge 2 commits into from

Conversation

dvorapa
Copy link

@dvorapa dvorapa commented Jan 3, 2014

So some small repair, but I haven't tested, if the function will do the same as before...

So some small repair, but I haven't tested, if the function will do the same as before...
@jonathantneal
Copy link
Collaborator

A return statement in a while loop?

@aFarkas
Copy link
Owner

aFarkas commented Jan 3, 2014

Did you mean:

if (node.specified) {
    wrapper.setAttribute(node.nodeName, node.nodeValue));
}

@dvorapa
Copy link
Author

dvorapa commented Jan 3, 2014

Oh, sorry, I didn't realize the surrounding while loop. And yes, I meant something like if clause or the ? : pattern, the return is not possible

@dvorapa
Copy link
Author

dvorapa commented Jan 5, 2014

Concretely: On the line 362 throws JSHint the error "Expected an assignment or function call and instead saw an expression." I just tried to fix it, because the while loop should not contain only expressions, but it depends on the opinion.

@dvorapa dvorapa closed this Jan 29, 2014
@dvorapa dvorapa deleted the patch-1 branch January 29, 2014 18:12
@dvorapa
Copy link
Author

dvorapa commented Jul 14, 2015

Closed in favor of #149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants