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

Function Data

2.1.1/src/data/Data.js:7–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5], function( jQuery, rnotwhite ) {
6
7function Data() {
8 // Support: Android<4,
9 // Old WebKit does not have Object.preventExtensions/freeze method,
10 // return new empty object instead with no [[set]] accessor
11 Object.defineProperty( this.cache = {}, 0, {
12 get: function() {
13 return {};
14 }
15 });
16
17 this.expando = jQuery.expando + Math.random();
18}
19
20Data.uid = 1;
21Data.accepts = jQuery.acceptData;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected