MCPcopy Index your code
hub / github.com/angular-ui/ui-router / makeMap

Function makeMap

test/angular/1.3/angular.js:699–704  ·  view source on GitHub ↗

* @param str 'key1,key2,...' * @returns {object} in the form of {key1:true, key2:true, ...}

(str)

Source from the content-addressed store, hash-verified

697 * @returns {object} in the form of {key1:true, key2:true, ...}
698 */
699function makeMap(str) {
700 var obj = {}, items = str.split(","), i;
701 for (i = 0; i < items.length; i++)
702 obj[items[i]] = true;
703 return obj;
704}
705
706
707function nodeName_(element) {

Callers 1

$CompileProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected