for #521, detect callback in _asyncMap
Merge pull request #522 from hojs/detect-callback

detect callback in _asyncMap