Skip to content

Conversation

clydzik
Copy link

@clydzik clydzik commented Sep 4, 2017

fixed leaking listener (#39) by switch to key/value structure. it was difficult on index based one
also cleaned git ignore a bit what produce bigger PR by side effect

}

int callbackIndex = requestIdGenerator.generate();
final String js = JsEvaluator.getJsForEval(jsCode, callbackIndex);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i kept the int as callback identifier, precision is good enough, less changes

@evgenyneu evgenyneu merged commit 4bbac7b into evgenyneu:master Sep 8, 2017
@evgenyneu
Copy link
Owner

Thank you very much. Do you think it is worth adding a unit test that verifies that the callback has been removed from the list?

@clydzik
Copy link
Author

clydzik commented Sep 9, 2017

I think I did it in testJsCallFinished_runsCallbackAndRemove
If this is not clean enough let me know.

@evgenyneu
Copy link
Owner

Yes, sorry, I missed that. All good :)

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.

2 participants