(controller, ident)
| 10915 | |
| 10916 | var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/; |
| 10917 | function identifierForController(controller, ident) { |
| 10918 | if (ident && isString(ident)) return ident; |
| 10919 | if (isString(controller)) { |
| 10920 | var match = CNTRL_REG.exec(controller); |
| 10921 | if (match) return match[3]; |
| 10922 | } |
| 10923 | } |
| 10924 | |
| 10925 | |
| 10926 | /** |