crypticcandy/ccweb — pull request #10 by fastest963 (2013-03-05 06:38:19+00:00)
Title: Clean up JSLint errors. Attempt to use transferable postMessage

In newer FF/Chrome you can direct transfer buffers instead of copying them
which results in huge performance gains. Try to use this instead of normal
copy-based postMessage. *This needs to be tested*

As stated above, this hasn't been tested because I don't have a testing environment but here are some of the other changes I made:

Remove all the unneeded binding and call'ing. Since self is available everyone, you don't need to send this along. Also, you can use a local var, currentChunk, instead of this.chunk since you only have one anyways and its just on the self/this object.

JSLint was exploding so I fixed a lot of the syntax errors it was bitching about as well ;)

Added todo's to remove arguments.callee. It's deprecated and shouldn't be relied upon.