Refactor languageDirAttributeIsUsed test to limit jQuery duplication and optimize some code paths
Refactor languageDirAttributeIsUsed test to limit jQuery duplication and optimize some code paths

cksource/quail,legendvijay/quail,cksource/quail,baldwicc/quail,cksource/quail,quailjs/quail,quailjs/quail,legendvijay/quail,baldwicc/quail,quailjs/quail