aboutsummaryrefslogtreecommitdiffstats
path: root/src/data/Data.js
Commit message (Collapse)AuthorAgeFilesLines
* Docs: Replace `#NUMBER` Trac issue references with `trac-NUMBER`Michał Gołębiowski-Owczarek2022-01-121-1/+1
| | | | | | | | | | | | | | | | | This is a version of gh-4993 for the `3.x-stable` branch. The GitHub UI treats `#NUMBER` as referring to its own issues which is confusing when in jQuery source it's usually referring to the old deprecated Trac instance at https://bugs.jquery.com. This change replaces all such Trac references with `trac-NUMBER`. A few of the references came with the Sizzle integration and referred to the Sizzle GitHub bug tracker. Those have been replaced with full links instead. A new entry describing issue reference conventions has been added to README. Closes gh-4994 Ref gh-4993 Ref 5d5ea015114092c157311c4948f7cc3d8c8e7f8a
* Data: Make the data object a regular object againMichał Gołębiowski-Owczarek2020-04-201-1/+1
| | | | | | | | | | | | | The change in gh-4603 made the object returned by `elem.data()` a prototype-less object. That's a desired change to support keys colliding with `Object.prototype` properties but it's also a breaking change so it has to wait for jQuery 4.0.0. A 3.x-only test was added to avoid breaking it in the future on this branch. Fixes gh-4665 Ref gh-4603 Closes gh-4666
* Data:Event:Manipulation: Prevent collisions with Object.prototypeMichał Gołębiowski-Owczarek2020-03-021-1/+1
| | | | | | | | | | Make sure events & data keys matching Object.prototype properties work. A separate fix for such events on cloned elements was added as well. Fixes gh-3256 Closes gh-4603 (cherry picked from commit 9d76c0b163675505d1a901e5fe5249a2c55609bc)
* Core: make camelCase function available only for internal usageNilton Cesar2018-01-081-6/+7
| | | | | Close gh-3604 Fixes gh-3384
* Core: Deprecate jQuery.isArrayManoj Kumar2016-11-301-1/+1
| | | | | Fixes gh-2961 Closes gh-3278
* Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapseTimmy Willison2016-09-151-3/+3
| | | | | | | | | | | | - Renames and changes rnotwhite to focus on HTML whitespace chars - Change internal use of jQuery.trim to more accurate strip and collapse - Adds tests to ensure HTML space characters are retained where valid - Doesn't add tests where the difference is inconsequential and existing tests are adequate. Fixes gh-3003 Fixes gh-3072 Close gh-3316
* Build: Put all AMD modules in "src/" in strict modeMichał Gołębiowski2016-04-251-0/+2
| | | | Fixes gh-3073
* Docs: Update support comments to follow the new syntaxMichał Gołębiowski2016-03-301-1/+1
| | | | | The changes follow the spec proposed in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
* Docs:Tests: Remove obsolete code from tests, update support commentsMichał Gołębiowski2016-03-081-1/+1
| | | | | | | | | | Support comments that were lacking the final IE/Edge version that exhibits the bug were checked & updated. Links to the Chromium bug tracker were updated. Code in tests related to unsupported browsers (like Android 2.3 in non-basic tests) has been removed. Fixes gh-2868 Closes gh-2949
* Data: Combine register and cache methodsJason Bedard2015-09-141-33/+27
| | | | Closes gh-2553
* Data: avoid using delete on DOM nodesJason Bedard2015-09-081-5/+13
| | | | Closes gh-2479
* Data: do not create data cache when fetching single propertyJason Bedard2015-09-081-4/+2
| | | | Closes gh-2554
* Data: Don't expose jQuery.acceptDataJason Bedard2015-09-081-4/+3
| | | | | | jQuery.acceptData is an undocumented internal API that shouldn't be exposed. Fixes gh-2555
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-4/+4
| | | | Fixes gh-2056
* Data: remove the expando when there's no more dataTimmy Willison2015-05-121-4/+6
| | | | | Fixes gh-1760 Close gh-2271
* Data: remove some unused codeTimmy Willison2015-05-121-9/+4
|
* Data: always camelCase keys in .data()Timmy Willison2015-05-041-30/+27
| | | | | | | - This effectively implements our "Embrace HTML5" option - Related: http://goo.gl/GcQAtn Fixes gh-2257
* Data: updates to element[expando] cacheRick Waldron2015-03-051-36/+23
| | | | | | | | | | - removes descriptor allocation - restore simplified cache creation - adds early return from remove call where no data exists - use Object.defineProperty - remove unnecessary code path Closes gh-2119
* Data: move element cache to element[expando]Rick Waldron2015-03-041-46/+48
| | | | | | | | | - avoid explicit data.discard() cleanup calls - explicitly remove the data.events property, only when private data exists - reduces code footprint Fixes gh-1734 Close gh-1428
* Data: avoid Object.defineProperties for nodesJason Bedard2015-03-041-13/+9
| | | | | | | Closes gh-1668 Fixes gh-1728 Ref gh-1734 Ref gh-1428
* Data: avoid non-alphanumeric chars in expando propertiesJason Bedard2014-09-261-1/+1
| | | | | | Ref chromium issue 378607 Ref #14839 Closes gh-1662
* Support: clean up comments and Support notationDave Methvin2014-06-101-2/+2
| | | | Closes gh-1577
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-0/+181