MCPcopy
hub / github.com/moxiecode/plupload / splitPrefix

Function splitPrefix

tests/js/require.js:391–399  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

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

Callers 1

makeModuleMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected