MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / jqLiteExpandoStore

Function jqLiteExpandoStore

test/fixtures/foo.js:2444–2457  ·  view source on GitHub ↗
(element, key, value)

Source from the content-addressed store, hash-verified

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

Callers 3

jqLiteOffFunction · 0.85
jqLiteDataFunction · 0.85
foo.jsFile · 0.85

Calls 2

isDefinedFunction · 0.85
jqNextIdFunction · 0.85

Tested by

no test coverage detected