aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/data.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix #5571. Setters should treat `undefined` as a no-op and be chainable.Richard Gibson2011-12-061-2/+1
|
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-78/+78
| | | | deprecated in QUnit.
* Landing pull request 512. 1.7 - removeData now takes space separated lists ↵Corey Frang2011-09-191-1/+23
| | | | | | | | and arrays of keys - Fixes #7323. More Details: - https://github.com/jquery/jquery/pull/512 - http://bugs.jquery.com/ticket/7323
* Landing pull request 503. 1.7 data: set a flag in the private data cache to ↵Corey Frang2011-09-191-0/+21
| | | | | | | | avoid having to scan attributes multiple times - Fixes #8909. More Details: - https://github.com/jquery/jquery/pull/503 - http://bugs.jquery.com/ticket/8909
* Landing pull request 500. 1.7 - "public data" stored as a key on "internal ↵Corey Frang2011-09-191-7/+8
| | | | | | | | data" - Fixes #8921. More Details: - https://github.com/jquery/jquery/pull/500 - http://bugs.jquery.com/ticket/8921
* Bug in rmultidash. Fixes #10194rwldrn2011-09-071-10/+13
|
* Test for window inference. Fixes #10080rwldrn2011-08-181-0/+13
|
* Merge pull request #456 from rwldrn/9318Dave Methvin2011-08-051-3/+6
|\ | | | | Improves support for arbitrary numbers in data keys. Fixes #9318
| * Adds failing testsRick Waldron2011-08-051-2/+5
| |
* | Adds failing tests for #9413Rick Waldron2011-08-051-0/+28
|/
* Correct non-null|undefined evaluation of data property values. Fixes #9794Rick Waldron2011-07-101-0/+26
|
* Landing pull request 403. Check for both camelized and hyphenated data ↵rwldrn2011-06-061-0/+17
| | | | | | | | property names; Fixes #9301. More Details: - https://github.com/jquery/jquery/pull/403 - http://bugs.jquery.com/ticket/9301
* Make sure that data properties with hyphens are always accessed/set using ↵John Resig2011-05-101-2/+7
| | | | camelCase. Fixes #9124.
* Switch QUnit div from depreceted #main to #qunit-fixturetimmywil2011-04-171-2/+2
|
* second batchlouisremi2011-04-111-23/+23
|
* Fixes #7328. When getting data- attributes, after-cap any embedded dashes ↵Alexis Abril2011-04-101-1/+18
| | | | per the W3C HTML5 spec.
* Only perpetrate the .toJSON hack on data caches when they are attached to a ↵Dave Methvin2011-02-171-6/+0
| | | | plain Javascript object. Part of the continuing saga of #8108.
* Hide metadata when serializing JS objects using JSON.stringify via a toJSON ↵Colin Snover2011-02-141-3/+29
| | | | hack. Fixes #8108.
* Revert portions of 7acb141ed7f2dedd950bb65acf878098640d081e that attempt to ↵Colin Snover2011-02-081-13/+2
| | | | use a function to hide jQuery metadata from JSON.stringify since this does not work reliably cross-browser (fails in Fx3.5, O11, Saf4).
* Update $.data to use a function instead of an object when attaching to JS ↵Colin Snover2011-02-071-4/+19
| | | | objects in order to hide attached metadata from JSON.stringify. Remove event.js code that was doing this before specifically for events, which is now redundant. Fixes #8108. 1.5-stable
* Update unit tests with a leak detection mechanism for the various jQuery ↵Colin Snover2011-01-091-0/+4
| | | | globals and fix all leaks in the tests.
* Change the way jQuery.data works so that there is no longer a chance of ↵Colin Snover2011-01-091-76/+162
| | | | collision between user data and internal data. Fixes #6968.
* More unit tests and a $.hasData that works for JS objects too.Colin Snover2010-12-221-6/+12
|
* Update jQuery.hasData to always return a boolean, with unit tests.Colin Snover2010-12-221-12/+21
|
* Only try to get data attributes for a jQuery-wrapped object if it is ↵Colin Snover2010-12-031-1/+4
| | | | actually an Element node. Fixes #7524.
* Add some more tests to make sure that pulling in data- properties on an ↵John Resig2010-10-171-3/+11
| | | | element with no data set, works.
* Make sure that .data() (no args) returns a list of all the data- properties ↵John Resig2010-10-171-2/+21
| | | | as well. Also make sure that accessing a data- property via .data() doesn't cause it to change again at a later time (it should be static). Fixes #7222, #7223.
* We removed deleteExpando after 1.4.2, for some reason. This caused problems ↵John Resig2010-10-171-1/+6
| | | | with removeData() (no arguments). Fixes #7209.
* Added some more tests relating to attaching data to a window.John Resig2010-10-111-2/+11
|
* Using data() on JavaScript objects sets fields directly on the object. Note ↵Dave Reed2010-09-291-26/+34
| | | | that events are now a property of a function (to avoid JSON serialization - and only in the case of JavaScript objects, not DOM nodes). Fixes #6807.
* Make sure that undefined is always returned for missing data properties. ↵jeresig2010-09-241-1/+4
| | | | Follow-up to #6304.
* Allow data to be bound to Flash objects (but still stopping short of ↵jeresig2010-09-241-0/+18
| | | | attaching to applets. Fixes #6121.
* Make .data(Object) extend the existing data object. Fixes #6692.jeresig2010-09-221-2/+4
|
* Fix bug when accessing .data() on an empty set. Return null rather than ↵Jacob Wright2010-09-221-13/+16
| | | | throwing exception.
* Make sure the data- number has at least one number in it before passing to ↵jeresig2010-09-221-1/+5
| | | | isNaN. Thanks to @cms in 8ebb9b22df32fe5739a48087b6e33abb9f5cda49 for a heads-up.
* Handle some additional data- number edge cases.jeresig2010-09-211-11/+13
|
* Make sure that the data- import also supports arrays.jeresig2010-09-211-2/+4
|
* Added in support for basic JSON object parsing of data- attributes.John Resig2010-09-211-2/+4
|
* Tweaked the data number RegExp some to handle some other edge cases.John Resig2010-09-211-1/+5
|
* Fixing the problem with data-* based numbers as mention by @jasonwebster in ↵jeresig2010-09-201-1/+3
| | | | 20673d7.
* Pull data-* attributes into .data(). Original code by Andrée Hasson and ↵John Resig2010-09-201-0/+68
| | | | Paul Irish. Fixes #6921.
* Make sure that .data() events don't bubble, per the discussion in ↵John Resig2010-07-271-1/+7
| | | | 2e10af143b7eafb7142524f6534a62aee1910bd1. Fixes #6832.
* Ticket #6808. Changes data() so on plain objects, it uses a function to ↵InfinitiesLoop2010-07-231-3/+4
| | | | contain the cache ID to avoid it being JSON serialized.
* Ticket #6804. Adds a changeData event.InfinitiesLoop2010-07-201-5/+20
|
* Attach data directly to plain objects, no reason to use the central ↵jeresig2010-02-271-3/+11
| | | | jQuery.cache. Fixes #6189.
* Make sure that undefined is always returned for undefined data properties. ↵jeresig2010-02-261-6/+16
| | | | Fixes #6166.
* Make sure that jQuery.data( elem ) always returns a data object, fixes ↵jeresig2010-01-281-7/+6
| | | | #5971. Improve the performance of .bind() and .unbind(), fixes #5972.
* Added support for .data(Object), overwriting the existing data object. Fixes ↵John Resig2009-12-091-1/+15
| | | | #4284.
* Split the queue code out from data.js into a dedicated queue.js file (also ↵John Resig2009-12-061-167/+0
| | | | split tests accordingly).
* Added in the .delay() method for delaying the execution of queued functions ↵jeresig2009-12-041-0/+15
| | | | and animations.