polotek/libxmljs — pull request #117 by apeace (2012-02-29 19:01:37+00:00)
Title: Remove global callbacks

Came across these when running Mocha tests against a library that uses `libxml2js`. Mocha detected a "global leak".

This could cause big problems that are impossible to find, particularly because the name of the global is a variable name that is frequently used.

Please note: I ran `npm test` after making the changes and everything checked out. One test is failing, but it also happens to be failing in `master`, and is unrelated to this fix.

Thanks for the great lib!