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

Another function that could be removed #6

Open
Spuds opened this issue Mar 27, 2022 · 2 comments
Open

Another function that could be removed #6

Spuds opened this issue Mar 27, 2022 · 2 comments

Comments

@Spuds
Copy link

Spuds commented Mar 27, 2022

var postarea = findAncestor(quotebutton, "postarea");

You should be able to safely use postarea = quotebutton.closest('.postarea'), now

@Frenzie
Copy link
Owner

Frenzie commented Mar 28, 2022

Depends on your definition of safe. I might need to polyfill it for Opera 11/12. /grin

@Frenzie
Copy link
Owner

Frenzie commented Mar 28, 2022

But yeah, closest is what, five years old? Pretty safe but probably at least a decade younger than this script. ;-)

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

No branches or pull requests

2 participants