trigger "focus" event in focus function make chrome error:
"Uncaught RangeError: Maximum call stack size exceeded"
Merge pull request #1056 from dlx1986/bugfix

fix a bug when use multi