(controller, ident)
| 10986 | |
| 10987 | var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/; |
| 10988 | function identifierForController(controller, ident) { |
| 10989 | if (ident && isString(ident)) return ident; |
| 10990 | if (isString(controller)) { |
| 10991 | var match = CNTRL_REG.exec(controller); |
| 10992 | if (match) return match[3]; |
| 10993 | } |
| 10994 | } |
| 10995 | |
| 10996 | |
| 10997 | /** |