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