Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More unit tests and a $.hasData that works for JS objects too. | Colin Snover | 2010-12-22 | 1 | -6/+12 |
| | |||||
* | Update jQuery.hasData to always return a boolean, with unit tests. | Colin Snover | 2010-12-22 | 1 | -12/+21 |
| | |||||
* | Only try to get data attributes for a jQuery-wrapped object if it is ↵ | Colin Snover | 2010-12-03 | 1 | -1/+4 |
| | | | | actually an Element node. Fixes #7524. | ||||
* | Add some more tests to make sure that pulling in data- properties on an ↵ | John Resig | 2010-10-17 | 1 | -3/+11 |
| | | | | element with no data set, works. | ||||
* | Make sure that .data() (no args) returns a list of all the data- properties ↵ | John Resig | 2010-10-17 | 1 | -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 Resig | 2010-10-17 | 1 | -1/+6 |
| | | | | with removeData() (no arguments). Fixes #7209. | ||||
* | Added some more tests relating to attaching data to a window. | John Resig | 2010-10-11 | 1 | -2/+11 |
| | |||||
* | Using data() on JavaScript objects sets fields directly on the object. Note ↵ | Dave Reed | 2010-09-29 | 1 | -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. ↵ | jeresig | 2010-09-24 | 1 | -1/+4 |
| | | | | Follow-up to #6304. | ||||
* | Allow data to be bound to Flash objects (but still stopping short of ↵ | jeresig | 2010-09-24 | 1 | -0/+18 |
| | | | | attaching to applets. Fixes #6121. | ||||
* | Make .data(Object) extend the existing data object. Fixes #6692. | jeresig | 2010-09-22 | 1 | -2/+4 |
| | |||||
* | Fix bug when accessing .data() on an empty set. Return null rather than ↵ | Jacob Wright | 2010-09-22 | 1 | -13/+16 |
| | | | | throwing exception. | ||||
* | Make sure the data- number has at least one number in it before passing to ↵ | jeresig | 2010-09-22 | 1 | -1/+5 |
| | | | | isNaN. Thanks to @cms in 8ebb9b22df32fe5739a48087b6e33abb9f5cda49 for a heads-up. | ||||
* | Handle some additional data- number edge cases. | jeresig | 2010-09-21 | 1 | -11/+13 |
| | |||||
* | Make sure that the data- import also supports arrays. | jeresig | 2010-09-21 | 1 | -2/+4 |
| | |||||
* | Added in support for basic JSON object parsing of data- attributes. | John Resig | 2010-09-21 | 1 | -2/+4 |
| | |||||
* | Tweaked the data number RegExp some to handle some other edge cases. | John Resig | 2010-09-21 | 1 | -1/+5 |
| | |||||
* | Fixing the problem with data-* based numbers as mention by @jasonwebster in ↵ | jeresig | 2010-09-20 | 1 | -1/+3 |
| | | | | 20673d7. | ||||
* | Pull data-* attributes into .data(). Original code by Andrée Hasson and ↵ | John Resig | 2010-09-20 | 1 | -0/+68 |
| | | | | Paul Irish. Fixes #6921. | ||||
* | Make sure that .data() events don't bubble, per the discussion in ↵ | John Resig | 2010-07-27 | 1 | -1/+7 |
| | | | | 2e10af143b7eafb7142524f6534a62aee1910bd1. Fixes #6832. | ||||
* | Ticket #6808. Changes data() so on plain objects, it uses a function to ↵ | InfinitiesLoop | 2010-07-23 | 1 | -3/+4 |
| | | | | contain the cache ID to avoid it being JSON serialized. | ||||
* | Ticket #6804. Adds a changeData event. | InfinitiesLoop | 2010-07-20 | 1 | -5/+20 |
| | |||||
* | Attach data directly to plain objects, no reason to use the central ↵ | jeresig | 2010-02-27 | 1 | -3/+11 |
| | | | | jQuery.cache. Fixes #6189. | ||||
* | Make sure that undefined is always returned for undefined data properties. ↵ | jeresig | 2010-02-26 | 1 | -6/+16 |
| | | | | Fixes #6166. | ||||
* | Make sure that jQuery.data( elem ) always returns a data object, fixes ↵ | jeresig | 2010-01-28 | 1 | -7/+6 |
| | | | | #5971. Improve the performance of .bind() and .unbind(), fixes #5972. | ||||
* | Added support for .data(Object), overwriting the existing data object. Fixes ↵ | John Resig | 2009-12-09 | 1 | -1/+15 |
| | | | | #4284. | ||||
* | Split the queue code out from data.js into a dedicated queue.js file (also ↵ | John Resig | 2009-12-06 | 1 | -167/+0 |
| | | | | split tests accordingly). | ||||
* | Added in the .delay() method for delaying the execution of queued functions ↵ | jeresig | 2009-12-04 | 1 | -0/+15 |
| | | | | and animations. | ||||
* | Fixing endlines. | Mark Gibson | 2009-11-25 | 1 | -296/+296 |
| | |||||
* | Switched from using QUnit's isObj/isSet to the more robust same method. | John Resig | 2009-09-29 | 1 | -1/+1 |
| | |||||
* | A follow-up to [6578] (which stopped adding expandos to elements that didn't ↵ | John Resig | 2009-09-25 | 1 | -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 data | Brandon Aaron | 2009-09-15 | 1 | -6/+21 |
| | |||||
* | jquery data: closes #5224. Exposing the expando. | Ariel Flesler | 2009-09-14 | 1 | -0/+16 |
| | |||||
* | Refactor queueing system to allow auto-dequeuing to use dequeue directly and | Yehuda Katz | 2009-07-16 | 1 | -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 #4284 | Yehuda Katz | 2009-07-16 | 1 | -0/+8 |
| | |||||
* | clearQueue and next should now work with default fx on all browsers | Yehuda Katz | 2009-07-13 | 1 | -24/+7 |
| | |||||
* | Add clearQueue for clearing non-fx queues | Yehuda Katz | 2009-07-12 | 1 | -1/+97 |
| | |||||
* | Added a next() shortcut for queues | Yehuda Katz | 2009-07-12 | 1 | -0/+21 |
| | |||||
* | jquery data: Closes #3539. Exposed jQuery.queue. Moved all the data and ↵ | Ariel Flesler | 2008-12-30 | 1 | -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. |