Merge pull request #1 from kingback/master

fix 1.3 detach后defaultFn无法执行的问题
Merge pull request #1 from kissygalleryteam/master

添加detachOn,detachAfter API