* direction cons to string * @param {Const} direction * @returns {String}
(direction)
| 93693 | * @param {Const} direction |
| 93694 | * @returns {String} |
| 93695 | */ function directionStr(direction) { |
| 93696 | if (direction == DIRECTION_DOWN) return "down"; |
| 93697 | else if (direction == DIRECTION_UP) return "up"; |
| 93698 | else if (direction == DIRECTION_LEFT) return "left"; |
| 93699 | else if (direction == DIRECTION_RIGHT) return "right"; |
| 93700 | return ""; |
| 93701 | } |
| 93702 | /** |
| 93703 | * get a recognizer by name if it is bound to a manager |
| 93704 | * @param {Recognizer|String} otherRecognizer |