(controller, ident)
| 9312 | |
| 9313 | var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/; |
| 9314 | function identifierForController(controller, ident) { |
| 9315 | if (ident && isString(ident)) return ident; |
| 9316 | if (isString(controller)) { |
| 9317 | var match = CNTRL_REG.exec(controller); |
| 9318 | if (match) return match[3]; |
| 9319 | } |
| 9320 | } |
| 9321 | |
| 9322 | |
| 9323 | /** |
no test coverage detected