(controller, ident)
| 11638 | |
| 11639 | var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/; |
| 11640 | function identifierForController(controller, ident) { |
| 11641 | if (ident && isString(ident)) return ident; |
| 11642 | if (isString(controller)) { |
| 11643 | var match = CNTRL_REG.exec(controller); |
| 11644 | if (match) return match[3]; |
| 11645 | } |
| 11646 | } |
| 11647 | |
| 11648 | |
| 11649 | /** |