(controller, ident)
| 11573 | |
| 11574 | var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/; |
| 11575 | function identifierForController(controller, ident) { |
| 11576 | if (ident && isString(ident)) return ident; |
| 11577 | if (isString(controller)) { |
| 11578 | var match = CNTRL_REG.exec(controller); |
| 11579 | if (match) return match[3]; |
| 11580 | } |
| 11581 | } |
| 11582 | |
| 11583 | |
| 11584 | /** |