MCPcopy
hub / github.com/angular-ui/ui-router / makeMap

Function makeMap

test/angular/1.4/angular.js:802–808  ·  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

800 * @returns {object} in the form of {key1:true, key2:true, ...}
801 */
802function makeMap(str) {
803 var obj = {}, items = str.split(','), i;
804 for (i = 0; i < items.length; i++) {
805 obj[items[i]] = true;
806 }
807 return obj;
808}
809
810
811function nodeName_(element) {

Callers 1

$CompileProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected