mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Support: clean up comments and Support notation
Closes gh-1577
This commit is contained in:
19
src/data.js
19
src/data.js
@@ -6,17 +6,16 @@ define([
|
||||
"./data/var/data_user"
|
||||
], function( jQuery, rnotwhite, access, data_priv, data_user ) {
|
||||
|
||||
/*
|
||||
Implementation Summary
|
||||
// Implementation Summary
|
||||
//
|
||||
// 1. Enforce API surface and semantic compatibility with 1.9.x branch
|
||||
// 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)
|
||||
// 5. Avoid exposing implementation details on user objects (eg. expando properties)
|
||||
// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
|
||||
|
||||
1. Enforce API surface and semantic compatibility with 1.9.x branch
|
||||
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)
|
||||
5. Avoid exposing implementation details on user objects (eg. expando properties)
|
||||
6. Provide a clear path for implementation upgrade to WeakMap in 2014
|
||||
*/
|
||||
var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
|
||||
rmultiDash = /([A-Z])/g;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user