MCPcopy Create free account
hub / github.com/apache/cloudstack / JQLiteExpandoStore

Function JQLiteExpandoStore

tools/ngui/static/js/lib/angular.js:1649–1662  ·  view source on GitHub ↗
(element, key, value)

Source from the content-addressed store, hash-verified

1647}
1648
1649function JQLiteExpandoStore(element, key, value) {
1650 var expandoId = element[jqName],
1651 expandoStore = jqCache[expandoId || -1];
1652
1653 if (isDefined(value)) {
1654 if (!expandoStore) {
1655 element[jqName] = expandoId = jqNextId();
1656 expandoStore = jqCache[expandoId] = {};
1657 }
1658 expandoStore[key] = value;
1659 } else {
1660 return expandoStore && expandoStore[key];
1661 }
1662}
1663
1664function JQLiteData(element, key, value) {
1665 var data = JQLiteExpandoStore(element, 'data'),

Callers 3

JQLiteUnbindFunction · 0.85
JQLiteDataFunction · 0.85
angular.jsFile · 0.85

Calls 2

isDefinedFunction · 0.85
jqNextIdFunction · 0.85

Tested by

no test coverage detected