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

Function jqLiteExpandoStore

test/angular/1.2/angular.js:2446–2459  ·  view source on GitHub ↗
(element, key, value)

Source from the content-addressed store, hash-verified

2444}
2445
2446function jqLiteExpandoStore(element, key, value) {
2447 var expandoId = element.ng339,
2448 expandoStore = jqCache[expandoId || -1];
2449
2450 if (isDefined(value)) {
2451 if (!expandoStore) {
2452 element.ng339 = expandoId = jqNextId();
2453 expandoStore = jqCache[expandoId] = {};
2454 }
2455 expandoStore[key] = value;
2456 } else {
2457 return expandoStore && expandoStore[key];
2458 }
2459}
2460
2461function jqLiteData(element, key, value) {
2462 var data = jqLiteExpandoStore(element, 'data'),

Callers 3

jqLiteOffFunction · 0.70
jqLiteDataFunction · 0.70
angular.jsFile · 0.70

Calls 2

isDefinedFunction · 0.70
jqNextIdFunction · 0.70

Tested by

no test coverage detected