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 same principle applies here, the 3rd argument of `Y.each()`, is the context, therefore this `self` is not needed.