I made Pool and PriorityQueue a proper class, all variables are now private properties and all methods sit on the prototype. I also adapted the README to show the usage with new Pool() as the recommended use, but calling it without new is still supported.
Unfortunately, I could not run the tests because of the ancient expresso. I will therefor just open this PR and see what Travis CI says.
Closes #111
I made Pool and PriorityQueue a proper class, all variables are now private properties and all methods sit on the prototype. I also adapted the README to show the usage with
new Pool()
as the recommended use, but calling it withoutnew
is still supported.Unfortunately, I could not run the tests because of the ancient expresso. I will therefor just open this PR and see what Travis CI says.