bugfix when use chrome and safari.
Merge pull request #281 from taoyuanyuan/t

Bugfix: fixed a bug of trim module.