aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/data.js
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Refactor queueing system to allow auto-dequeuing to use dequeue directly andYehuda Katz2009-07-161-23/+20
| | | | | | | | | | | therefore require dequeue to always leave the element it has dequeued on the queue. - In the fx queue, a progress sentinel is added when a queue element is dequeued. - The sentinel is ignored when dequeue is called explicitly - When adding a new element to the fx queue, queue() checks if the progress sentinel is present. If not, it calls dequeue()
* Implemented .data() to get the entire data object. Closes #4284Yehuda Katz2009-07-161-0/+8
|
* clearQueue and next should now work with default fx on all browsersYehuda Katz2009-07-131-24/+7
|
* Add clearQueue for clearing non-fx queuesYehuda Katz2009-07-121-1/+97
|
* Added a next() shortcut for queuesYehuda Katz2009-07-121-0/+21
|
* jquery data: Closes #3539. Exposed jQuery.queue. Moved all the data and ↵Ariel Flesler2008-12-301-0/+160
queue functions to their own module. Made the dequeue function more generic(designed to be used on functions). Closes #3748. Reverted a previous modification.