aboutsummaryrefslogtreecommitdiffstats
path: root/src/data
Commit message (Collapse)AuthorAgeFilesLines
* Data: Refactor to reduce sizeRichard Gibson2024-01-221-1/+1
| | | | | | * Return the new value from `set(owner, key, value)`. * Use `set(owner, key, value)` rather than `access(owner, key, value)`. Close gh-5392
* Core: Use named exports in `src/`Michał Gołębiowski-Owczarek2023-09-124-12/+10
| | | | | | | | | The `default` export is treated differently across tooling when transpiled to CommonJS - tools differ on whether `module.exports` represents the full module object or just its default export. Switch `src/` modules to named exports for tooling consistency. Fixes gh-5262 Closes gh-5292
* Docs: Replace `#NUMBER` Trac issue references with `trac-NUMBER`Michał Gołębiowski-Owczarek2022-01-041-1/+1
| | | | | | | | | | | | | 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-4993
* Build: Update eslint-config-jquery, fix linting violationsMichał Gołębiowski-Owczarek2020-05-181-1/+1
| | | | | Closes gh-4696 Ref jquery/eslint-config-jquery#15 Ref jquery/eslint-config-jquery#16
* 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
* Core: Migrate from AMD to ES modules 🎉Michał Gołębiowski-Owczarek2019-11-184-29/+10
| | | | | | | | | | | | | | | | | | | | | | Migrate all source AMD modules to ECMAScript modules. The final bundle is compiled by a custom build process that uses Rollup under the hood. Test files themselves are still loaded via RequireJS as that has to work in IE 11. Tests can now be run in "Load as modules" mode which replaces the previous "Load with AMD" option. That option of running tests doesn't work in IE and Edge as it requires support for dynamic imports. Some of the changes required by the migration: * check `typeof` of `noGlobal` instead of using the variable directly as it's not available when modules are used * change the nonce module to be an object as ECMASscript module exports are immutable * remove some unused exports * import `./core/parseHTML.js` directly in `jquery.js` so that it's not being cut out when the `ajax` module is excluded in a custom compilation Closes gh-4541
* Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJSMichał Gołębiowski-Owczarek2019-04-291-1/+1
| | | | | | | | | | | Also, update support comments format to match format described in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197 with the change from: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-448998379 (open-ended ranges end with `+`). Fixes gh-3950 Fixes gh-4299 Closes gh-4347
* 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: ESLint detailsOleg Gaidarenko2016-06-111-1/+0
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Build: Put all AMD modules in "src/" in strict modeMichał Gołębiowski2016-04-254-0/+8
| | | | 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
* Build: put back "lint" command to the "dev" listOleg Gaidarenko2015-09-081-0/+1
| | | | | | Also fix lint error in `data` module. It seems this command was removed from the list during merge
* Data: Don't expose jQuery.acceptDataJason Bedard2015-09-082-10/+5
| | | | | | jQuery.acceptData is an undocumented internal API that shouldn't be exposed. Fixes gh-2555
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-074-10/+11
| | | | 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
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-172-0/+0
|
* Support: clean up comments and Support notationDave Methvin2014-06-101-2/+2
| | | | Closes gh-1577
* Fix #14074: element id="nodeName". Close gh-1389.Richard Gibson2013-11-071-2/+2
| | | | | | | | | | | (cherry picked from commit 126d596b56924613687329b7aab4f0cdf4b593b3) Conflicts: src/data.js src/data/accepts.js test/unit/core.js test/unit/data.js
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-154-0/+211