(controller, ident)
| 10438 | |
| 10439 | var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/; |
| 10440 | function identifierForController(controller, ident) { |
| 10441 | if (ident && isString(ident)) return ident; |
| 10442 | if (isString(controller)) { |
| 10443 | var match = CNTRL_REG.exec(controller); |
| 10444 | if (match) return match[3]; |
| 10445 | } |
| 10446 | } |
| 10447 | |
| 10448 | |
| 10449 | /** |