Factor out common code for setJavaScriptHost/clearJavaScriptHost, fix typo in error message.

Patch by: jat (+scottb)
Review by: scottb


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@957 8db76d5a-ed1c-0410-87a9-c151d255dfc7
1 file changed