* direction cons to string * @param {Const} direction * @returns {String}
(direction)
| 53001 | |
| 53002 | |
| 53003 | function directionStr(direction) { |
| 53004 | if (direction == DIRECTION_DOWN) { |
| 53005 | return 'down'; |
| 53006 | } else if (direction == DIRECTION_UP) { |
| 53007 | return 'up'; |
| 53008 | } else if (direction == DIRECTION_LEFT) { |
| 53009 | return 'left'; |
| 53010 | } else if (direction == DIRECTION_RIGHT) { |
| 53011 | return 'right'; |
| 53012 | } |
| 53013 | |
| 53014 | return ''; |
| 53015 | } |
| 53016 | /** |
| 53017 | * get a recognizer by name if it is bound to a manager |
| 53018 | * @param {Recognizer|String} otherRecognizer |