fixed wrong "this" in parsedir(), fixed #242

yuidoc did not worked from grunt-contrib-yuidoc die to wrong "this" in each() callbacks. Replaced them with "var self=this"

Error log is in issue #242
the 3rd argument of Y.each is the context of the callback, therefore there is not need to use the closure to get a reference to `this`.