MCPcopy Create free account
hub / github.com/JsAaron/jQuery / Data

Function Data

2.0.3/Data.js:18–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 rmultiDash = /([A-Z])/g;
17
18 function Data() {
19 // Support: Android < 4,
20 // Old WebKit does not have Object.preventExtensions/freeze method,
21 // return new empty object instead with no [[set]] accessor
22 Object.defineProperty(this.cache = {}, 0, {
23 get: function() {
24 return {};
25 }
26 });
27
28 //dom与data映射的uuid
29 this.expando = jQuery.expando + Math.random();
30 }
31
32 //每次自增变量
33 Data.uid = 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected