Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Only perpetrate the .toJSON hack on data caches when they are attached to a ↵ | Dave Methvin | 2011-02-17 | 1 | -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 Snover | 2011-02-14 | 1 | -3/+1 |
| | | | | additional superfluous function. | ||||
* | Hide metadata when serializing JS objects using JSON.stringify via a toJSON ↵ | Colin Snover | 2011-02-14 | 1 | -3/+23 |
| | | | | hack. Fixes #8108. | ||||
* | Revert portions of 7acb141ed7f2dedd950bb65acf878098640d081e that attempt to ↵ | Colin Snover | 2011-02-08 | 1 | -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 Snover | 2011-02-07 | 1 | -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 Snover | 2011-01-17 | 1 | -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 Snover | 2011-01-09 | 1 | -55/+107 |
| | | | | collision between user data and internal data. Fixes #6968. | ||||
* | Merge SlexAxton/jquery:master into jquery/jquery:master. | Colin Snover | 2010-12-26 | 1 | -1/+2 |
|\ | |||||
| * | Changed the expando string to use a random number instead of the time, so ↵ | Alex Sexton | 2010-12-26 | 1 | -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 fix | Colin Snover | 2010-12-22 | 1 | -1/+1 |
| | | |||||
* | | More unit tests and a $.hasData that works for JS objects too. | Colin Snover | 2010-12-22 | 1 | -1/+5 |
| | | |||||
* | | Update jQuery.hasData to always return a boolean, with unit tests. | Colin Snover | 2010-12-22 | 1 | -1/+1 |
| | | |||||
* | | Fix #7717 and #7165. Thanks to dmethvin and iliakan for their help fixing ↵ | Colin Snover | 2010-12-19 | 1 | -2/+6 |
| | | | | | | | | these issues. | ||||
* | | Only try to get data attributes for a jQuery-wrapped object if it is ↵ | Colin Snover | 2010-12-03 | 1 | -7/+9 |
| | | | | | | | | actually an Element node. Fixes #7524. | ||||
* | | Make sure that when multiple variables are being declared that assignments ↵ | John Resig | 2010-11-09 | 1 | -1/+2 |
| | | | | | | | | are each done on their own line. | ||||
* | | Only need to declare the data once. | jeresig | 2010-10-21 | 1 | -3/+3 |
| | | |||||
* | | Make sure that .data() (no args) returns a list of all the data- properties ↵ | John Resig | 2010-10-17 | 1 | -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. | rwldrn | 2010-10-05 | 1 | -1/+1 |
| | |||||
* | Using data() on JavaScript objects sets fields directly on the object. Note ↵ | Dave Reed | 2010-09-29 | 1 | -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. ↵ | jeresig | 2010-09-27 | 1 | -3/+2 |
| | | | | Additionally expose jQuery.isNaN from the data module. | ||||
* | Allow data to be bound to Flash objects (but still stopping short of ↵ | jeresig | 2010-09-24 | 1 | -3/+17 |
| | | | | 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 | -2/+2 |
| | | | | throwing exception. | ||||
* | Applied the RegExp issues reported by Jeff Robinson here: ↵ | jeresig | 2010-09-22 | 1 | -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 ↵ | jeresig | 2010-09-22 | 1 | -1/+1 |
| | | | | isNaN. Thanks to @cms in 8ebb9b22df32fe5739a48087b6e33abb9f5cda49 for a heads-up. | ||||
* | Escape RegExp braces to sooth JSLint's temper. | jeresig | 2010-09-21 | 1 | -1/+1 |
| | |||||
* | Switch to using isNaN instead of RegExp for data-. | jeresig | 2010-09-21 | 1 | -2/+1 |
| | |||||
* | Handle some additional data- number edge cases. | jeresig | 2010-09-21 | 1 | -1/+1 |
| | |||||
* | Make sure that the data- import also supports arrays. | jeresig | 2010-09-21 | 1 | -1/+1 |
| | |||||
* | Added in support for basic JSON object parsing of data- attributes. | John Resig | 2010-09-21 | 1 | -6/+10 |
| | |||||
* | Make sure that undefined is returned for not found data- attributes, not null. | John Resig | 2010-09-21 | 1 | -1/+4 |
| | |||||
* | Tweaked the data number RegExp some to handle some other edge cases. | John Resig | 2010-09-21 | 1 | -1/+1 |
| | |||||
* | Fixing the problem with data-* based numbers as mention by @jasonwebster in ↵ | jeresig | 2010-09-20 | 1 | -1/+1 |
| | | | | 20673d7. | ||||
* | Pull data-* attributes into .data(). Original code by Andrée Hasson and ↵ | John Resig | 2010-09-20 | 1 | -1/+17 |
| | | | | Paul Irish. Fixes #6921. | ||||
* | Make sure that jQuery works even when the individual modules are loaded ↵ | jeresig | 2010-09-08 | 1 | -0/+4 |
| | | | | separately AND jQuery.noConflict(true) is used. Fixes #7011. | ||||
* | Make sure that .data() events don't bubble, per the discussion in ↵ | John Resig | 2010-07-27 | 1 | -2/+7 |
| | | | | 2e10af143b7eafb7142524f6534a62aee1910bd1. Fixes #6832. | ||||
* | Fix for issues discussed in 9faab0b74fd316c2161612236d9ea8a01f3c78f8. Goes ↵ | Dave Reed | 2010-07-23 | 1 | -4/+6 |
| | | | | towards fixing #6808. | ||||
* | Ticket 6808. Updated per code review comments by jeresig | InfinitiesLoop | 2010-07-23 | 1 | -6/+3 |
| | |||||
* | Ticket #6808. Changes data() so on plain objects, it uses a function to ↵ | InfinitiesLoop | 2010-07-23 | 1 | -4/+25 |
| | | | | contain the cache ID to avoid it being JSON serialized. | ||||
* | Ticket #6804. Adds a changeData event. | InfinitiesLoop | 2010-07-20 | 1 | -0/+1 |
| | |||||
* | Expose jQuery.uuid (use with caution) and make sure the expando property is ↵ | John Resig | 2010-04-24 | 1 | -4/+8 |
| | | | | used in the events module. | ||||
* | Made it so that you no longer need to build jQuery in order to run the test ↵ | jeresig | 2010-03-23 | 1 | -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 ↵ | jeresig | 2010-02-27 | 1 | -10/+17 |
| | | | | jQuery.cache. Fixes #6189. | ||||
* | Make sure that undefined is always returned for undefined data properties. ↵ | jeresig | 2010-02-26 | 1 | -1/+1 |
| | | | | Fixes #6166. | ||||
* | Found a better detect for deleting an expando, added back in removeAttribute ↵ | jeresig | 2010-02-13 | 1 | -1/+4 |
| | | | | as it does work in IE. | ||||
* | Clean up expando removal code - only try to delete the expando from an ↵ | jeresig | 2010-02-13 | 1 | -27/+1 |
| | | | | element if it's possible. | ||||
* | Further optimize the empty/remove/cleanData logic. | jeresig | 2010-01-28 | 1 | -0/+19 |
| | |||||
* | Make sure that jQuery.data( elem ) always returns a data object, fixes ↵ | jeresig | 2010-01-28 | 1 | -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 ↵ | jeresig | 2009-12-21 | 1 | -4/+4 |
| | | | | jQuery Core Style Guideline. | ||||
* | Added support for .data(Object), overwriting the existing data object. Fixes ↵ | John Resig | 2009-12-09 | 1 | -4/+12 |
| | | | | #4284. |