(controller, ident)
| 8866 | |
| 8867 | var CNTRL_REG = /^(\S+)(\s+as\s+(\w+))?$/; |
| 8868 | function identifierForController(controller, ident) { |
| 8869 | if (ident && isString(ident)) return ident; |
| 8870 | if (isString(controller)) { |
| 8871 | var match = CNTRL_REG.exec(controller); |
| 8872 | if (match) return match[3]; |
| 8873 | } |
| 8874 | } |
| 8875 | |
| 8876 | |
| 8877 | /** |
no test coverage detected