(controller, ident)
| 9722 | |
| 9723 | var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/; |
| 9724 | function identifierForController(controller, ident) { |
| 9725 | if (ident && isString(ident)) return ident; |
| 9726 | if (isString(controller)) { |
| 9727 | var match = CNTRL_REG.exec(controller); |
| 9728 | if (match) return match[3]; |
| 9729 | } |
| 9730 | } |
| 9731 | |
| 9732 | |
| 9733 | /** |
no test coverage detected