Applied Pull Request
http://typescript.codeplex.com/SourceControl/network/forks/kayahr/typescript/contribution/6570