Rename private function in Promise.
Update doc and amdquery.js.