aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix #10588. For now, event voyeurism only merits the look of disapproval.Dave Methvin2011-10-261-3/+2
| | | | If you are using `.data("events")` we would like to know how we can provide a documented interface that satisfies the need.
* Fix #10478. Replace jQuery.isNaN with jQuery.isNumeric.Dave Methvin2011-10-111-1/+1
| | | | Thanks to Christian C. Salvadó for the unit tests!
* Landing pull request 512. 1.7 - removeData now takes space separated lists ↵Corey Frang2011-09-191-4/+17
| | | | | | | | and arrays of keys - Fixes #7323. More Details: - https://github.com/jquery/jquery/pull/512 - http://bugs.jquery.com/ticket/7323
* Landing pull request 503. 1.7 data: set a flag in the private data cache to ↵Corey Frang2011-09-191-4/+6
| | | | | | | | avoid having to scan attributes multiple times - Fixes #8909. More Details: - https://github.com/jquery/jquery/pull/503 - http://bugs.jquery.com/ticket/8909
* Landing pull request 500. 1.7 - "public data" stored as a key on "internal ↵Corey Frang2011-09-191-38/+23
| | | | | | | | data" - Fixes #8921. More Details: - https://github.com/jquery/jquery/pull/500 - http://bugs.jquery.com/ticket/8921
* Bug in rmultidash. Fixes #10194rwldrn2011-09-071-2/+3
|
* Test for window inference. Fixes #10080rwldrn2011-08-181-2/+2
|
* Ensure cache[id] exists before attempting to delete it. Fixes #10080Rick Waldron2011-08-171-1/+2
|
* Landing pull request 459. Do not allow assumed cache[id] in jQuery.data. ↵Rick Waldron2011-08-171-1/+1
| | | | | | | | Fixes #8235. More Details: - https://github.com/jquery/jquery/pull/459 - http://bugs.jquery.com/ticket/8235
* Supports interoperable removal of hyphenated/camelCase properties. Fixes #9413Rick Waldron2011-08-051-2/+14
|
* Do plain property check first, fallback to camelCase only if nec. Fixes #9794Rick Waldron2011-07-251-5/+5
|
* Correct non-null|undefined evaluation of data property values. Fixes #9794Rick Waldron2011-07-101-5/+21
|
* Landing pull request 403. Check for both camelized and hyphenated data ↵rwldrn2011-06-061-1/+4
| | | | | | | | 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/+2
| | | | camelCase. Fixes #9124.
* Global found in dataAttr functiontimmywil2011-05-061-1/+1
|
* Fixes #7328. When getting data- attributes, after-cap any embedded dashes ↵Alexis Abril2011-04-101-4/+8
| | | | per the W3C HTML5 spec.
* 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.