aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.js
Commit message (Collapse)AuthorAgeFilesLines
* Only perpetrate the .toJSON hack on data caches when they are attached to a ↵Dave Methvin2011-02-171-1/+10
| | | | plain Javascript object. Part of the continuing saga of #8108.
* Update jQuery.data to use jQuery.noop for toJSON hack instead of an ↵Colin Snover2011-02-141-3/+1
| | | | additional superfluous function.
* Hide metadata when serializing JS objects using JSON.stringify via a toJSON ↵Colin Snover2011-02-141-3/+23
| | | | hack. Fixes #8108.
* Revert portions of 7acb141ed7f2dedd950bb65acf878098640d081e that attempt to ↵Colin Snover2011-02-081-3/+1
| | | | 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-2/+4
| | | | 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
* Introduce a temporary hack to allow jQuery.fn.data("events") to continue to ↵Colin Snover2011-01-171-0/+7
| | | | work. This will be going away in 1.6. More information will be available in the 1.5 release notes.
* Change the way jQuery.data works so that there is no longer a chance of ↵Colin Snover2011-01-091-55/+107
| | | | collision between user data and internal data. Fixes #6968.
* Merge SlexAxton/jquery:master into jquery/jquery:master.Colin Snover2010-12-261-1/+2
|\
| * Changed the expando string to use a random number instead of the time, so ↵Alex Sexton2010-12-261-2/+3
| | | | | | | | collisions become less likely. Also added jQuery version to instantly differentiate separate versions of jQuery (a common use case for noConflict, etc, when two jQuery instances are on the page). Fixes #6842.
* | Code style fixColin Snover2010-12-221-1/+1
| |
* | More unit tests and a $.hasData that works for JS objects too.Colin Snover2010-12-221-1/+5
| |
* | Update jQuery.hasData to always return a boolean, with unit tests.Colin Snover2010-12-221-1/+1
| |
* | Fix #7717 and #7165. Thanks to dmethvin and iliakan for their help fixing ↵Colin Snover2010-12-191-2/+6
| | | | | | | | these issues.
* | Only try to get data attributes for a jQuery-wrapped object if it is ↵Colin Snover2010-12-031-7/+9
| | | | | | | | actually an Element node. Fixes #7524.
* | Make sure that when multiple variables are being declared that assignments ↵John Resig2010-11-091-1/+2
| | | | | | | | are each done on their own line.
* | Only need to declare the data once.jeresig2010-10-211-3/+3
| |
* | Make sure that .data() (no args) returns a list of all the data- properties ↵John Resig2010-10-171-21/+45
|/ | | | 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.
* Fixes acceptData defining in the global scope.rwldrn2010-10-051-1/+1
|
* Using data() on JavaScript objects sets fields directly on the object. Note ↵Dave Reed2010-09-291-30/+20
| | | | 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 opacity is being reset properly on a show animation. ↵jeresig2010-09-271-3/+2
| | | | Additionally expose jQuery.isNaN from the data module.
* Allow data to be bound to Flash objects (but still stopping short of ↵jeresig2010-09-241-3/+17
| | | | 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-2/+2
| | | | throwing exception.
* Applied the RegExp issues reported by Jeff Robinson here: ↵jeresig2010-09-221-2/+3
| | | | http://jmrware.com/articles/2010/jqueryregex/jQueryRegexes.html Additionally broke out all remaining inline RegExp. Fixes #7062.
* Make sure the data- number has at least one number in it before passing to ↵jeresig2010-09-221-1/+1
| | | | isNaN. Thanks to @cms in 8ebb9b22df32fe5739a48087b6e33abb9f5cda49 for a heads-up.
* Escape RegExp braces to sooth JSLint's temper.jeresig2010-09-211-1/+1
|
* Switch to using isNaN instead of RegExp for data-.jeresig2010-09-211-2/+1
|
* Handle some additional data- number edge cases.jeresig2010-09-211-1/+1
|
* Make sure that the data- import also supports arrays.jeresig2010-09-211-1/+1
|
* Added in support for basic JSON object parsing of data- attributes.John Resig2010-09-211-6/+10
|
* Make sure that undefined is returned for not found data- attributes, not null.John Resig2010-09-211-1/+4
|
* Tweaked the data number RegExp some to handle some other edge cases.John Resig2010-09-211-1/+1
|
* Fixing the problem with data-* based numbers as mention by @jasonwebster in ↵jeresig2010-09-201-1/+1
| | | | 20673d7.
* Pull data-* attributes into .data(). Original code by Andrée Hasson and ↵John Resig2010-09-201-1/+17
| | | | Paul Irish. Fixes #6921.
* Make sure that jQuery works even when the individual modules are loaded ↵jeresig2010-09-081-0/+4
| | | | separately AND jQuery.noConflict(true) is used. Fixes #7011.
* Make sure that .data() events don't bubble, per the discussion in ↵John Resig2010-07-271-2/+7
| | | | 2e10af143b7eafb7142524f6534a62aee1910bd1. Fixes #6832.
* Fix for issues discussed in 9faab0b74fd316c2161612236d9ea8a01f3c78f8. Goes ↵Dave Reed2010-07-231-4/+6
| | | | towards fixing #6808.
* Ticket 6808. Updated per code review comments by jeresigInfinitiesLoop2010-07-231-6/+3
|
* Ticket #6808. Changes data() so on plain objects, it uses a function to ↵InfinitiesLoop2010-07-231-4/+25
| | | | contain the cache ID to avoid it being JSON serialized.
* Ticket #6804. Adds a changeData event.InfinitiesLoop2010-07-201-0/+1
|
* Expose jQuery.uuid (use with caution) and make sure the expando property is ↵John Resig2010-04-241-4/+8
| | | | used in the events module.
* Made it so that you no longer need to build jQuery in order to run the test ↵jeresig2010-03-231-1/+1
| | | | suite (but you'll still need a checkout of QUnit and Sizzle, at least).
* Attach data directly to plain objects, no reason to use the central ↵jeresig2010-02-271-10/+17
| | | | jQuery.cache. Fixes #6189.
* Make sure that undefined is always returned for undefined data properties. ↵jeresig2010-02-261-1/+1
| | | | Fixes #6166.
* Found a better detect for deleting an expando, added back in removeAttribute ↵jeresig2010-02-131-1/+4
| | | | as it does work in IE.
* Clean up expando removal code - only try to delete the expando from an ↵jeresig2010-02-131-27/+1
| | | | element if it's possible.
* Further optimize the empty/remove/cleanData logic.jeresig2010-01-281-0/+19
|
* Make sure that jQuery.data( elem ) always returns a data object, fixes ↵jeresig2010-01-281-10/+7
| | | | #5971. Improve the performance of .bind() and .unbind(), fixes #5972.
* Made a number of spacing changes to bring the code more-inline with the ↵jeresig2009-12-211-4/+4
| | | | jQuery Core Style Guideline.
* Added support for .data(Object), overwriting the existing data object. Fixes ↵John Resig2009-12-091-4/+12
| | | | #4284.