coolaj86 / formaline

formaline is a module for handling form requests ( HTTP POSTs / PUTs ) and for fast parsing of file uploads.
Apache License 2.0
239 stars 16 forks source link

Fixed leaked global variables in formaline.js #35

Closed nmcclay closed 12 years ago

nmcclay commented 12 years ago

There were several global variables in formaline.js which throw errors when tests are run in mocha.

Error: global leaks detected: i, ok, formlogging, onClose, onData, onEnd

I have fixed formlogging, onClose, onData, and onEnd. There are still two leaked global variables left related to logging 'ok' and 'i' which are also used in quickParser.js