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

Function firing twice in Firefox 56 on 2.4.1 (regression from bug 54) #64

Open
trlkly opened this issue Sep 17, 2017 · 3 comments
Open
Labels

Comments

@trlkly
Copy link

trlkly commented Sep 17, 2017

I have the following (simplified) code in my userscript for xkcd.com, running at document-start (using GreaseMonkey).

document.arrive('ul.comicNav', { onceOnly: true, existing: true }, func); //from @require
function func() { 
 console.log('test');
}

Not even adding document.unbindArrive('ul.comicNav') or Arrive.undbindAllArrive() seems to stop this.

This suggests that, even though I am unbinding the Arrive (either automatically or explicitly), both ul.comic.Nav instances are still causing func() to fire.

I have done regression testing, and this behavior seems to be due to the fix for #54. Ironically, in Firefox, it seems to be causing the very thing you were trying to prevent in that bug.

@uzairfarooq
Copy link
Owner

Hey @trlkly. I just created this fiddle https://jsfiddle.net/0r7du008/3/ to reproduce the issue but it seems to be firing only once. I'm using Firefox 55.0.3

@trlkly
Copy link
Author

trlkly commented Sep 25, 2017 via email

@uzairfarooq
Copy link
Owner

Ah, I see. Thanks for reporting, will fix it in a day or two.

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