This commit is contained in:
2022-11-15 07:33:28 -06:00
parent cd7b98e3f5
commit 54d6dc410e
7 changed files with 130 additions and 19 deletions

View File

@@ -4395,7 +4395,7 @@ var dataUser = new Data();
// 2. Improve the module's maintainability by reducing the storage
// paths to a single mechanism.
// 3. Use the same single mechanism to support "private" and "user" data.
// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
// 4. _Never_ expose "private" data to user code (TODO: Drop _internal_data_dict, _removeData)
// 5. Avoid exposing implementation details on user objects (eg. expando properties)
// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
@@ -4463,7 +4463,7 @@ jQuery.extend( {
dataUser.remove( elem, name );
},
// TODO: Now that all calls to _data and _removeData have been replaced
// TODO: Now that all calls to _internal_data_dict and _removeData have been replaced
// with direct calls to dataPriv methods, these can be deprecated.
_data: function( elem, name, data ) {
return dataPriv.access( elem, name, data );