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

.attr() function parameter is not executed - function is used as string #2

Closed
dawidkowalik opened this issue Dec 3, 2018 · 2 comments
Assignees
Labels

Comments

@dawidkowalik
Copy link

dawidkowalik commented Dec 3, 2018

$('#test').attr('data-test', function(i, el){ return 'test'; })

does not set data-test attribute to test, sets it to whole function content.

@hexydec hexydec self-assigned this Dec 3, 2018
@hexydec hexydec added the bug label Dec 3, 2018
@hexydec
Copy link
Owner

hexydec commented Dec 3, 2018

Good spot. Will get back to you with an update.

@hexydec
Copy link
Owner

hexydec commented Dec 3, 2018

Please pull the latest commit to resolve this issue.

@hexydec hexydec closed this as completed Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants