(name)
| 389 | //with the plugin being undefined if the name |
| 390 | //did not have a plugin prefix. |
| 391 | function splitPrefix(name) { |
| 392 | var prefix, |
| 393 | index = name ? name.indexOf('!') : -1; |
| 394 | if (index > -1) { |
| 395 | prefix = name.substring(0, index); |
| 396 | name = name.substring(index + 1, name.length); |
| 397 | } |
| 398 | return [prefix, name]; |
| 399 | } |
| 400 | |
| 401 | /** |
| 402 | * Creates a module mapping that includes plugin prefix, module |