aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/data.js
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Fixing endlines.Mark Gibson2009-11-251-296/+296
|
* Switched from using QUnit's isObj/isSet to the more robust same method.John Resig2009-09-291-1/+1
|
* A follow-up to [6578] (which stopped adding expandos to elements that didn't ↵John Resig2009-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | have data). That broke jQuery.unique() (so we're now using the unique from Sizzle). Using Sizzle's unique (which also sorts in document order) changed how add, andSelf, parents, nextAll, prevAll, and siblings work. after and before were changed to not use .add() (in order to guarantee their position in the jQuery set). Also, jQuery.data(elem) was updated to return that element's data object (instead of its ID). $("<div/>").after("<span/>") => [ div, span ] (calling after on a disconnected DOM node adds the nodes to the end of the jQuery set) $("<div/>").before("<span/>") => [ span, div ] (calling before on a disconnected DOM node adds the nodes to the beginning of the jQuery set) $("div").add("span") => [ div, span, span, div, span ] (results now come out in document order) $("div").find("code").andSelf(); => [ div, code, code ] (results now come out in document order) Same goes for .parents(), .nextAll(), .prevAll(), and .siblings(). Exception: .parents() will still return the results in reverse document order. jQuery.data(elem) => { object of data } (no longer returns the unique ID assigned to the node)
* data should not add expando unless actually adding dataBrandon Aaron2009-09-151-6/+21
|
* jquery data: closes #5224. Exposing the expando.Ariel Flesler2009-09-141-0/+16
|