(controller, ident)
| 11004 | |
| 11005 | var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/; |
| 11006 | function identifierForController(controller, ident) { |
| 11007 | if (ident && isString(ident)) return ident; |
| 11008 | if (isString(controller)) { |
| 11009 | var match = CNTRL_REG.exec(controller); |
| 11010 | if (match) return match[3]; |
| 11011 | } |
| 11012 | } |
| 11013 | |
| 11014 | |
| 11015 | /** |