diff options
author | timmywil <timmywillisn@gmail.com> | 2011-08-22 15:02:46 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-08-22 15:02:46 -0400 |
commit | 84f29084d6ac8077ce5dcb4dd94d43aaeed18fb0 (patch) | |
tree | 1806920c7c2f6b55e687f1a203dd3ec760cc18a1 /src/data.js | |
parent | 6805fc2cd20e36af5c1b0c51f6f39f21cea4609a (diff) | |
download | jquery-84f29084d6ac8077ce5dcb4dd94d43aaeed18fb0.tar.gz jquery-84f29084d6ac8077ce5dcb4dd94d43aaeed18fb0.zip |
Revert "Landing pull request 461. Adds a due diligence check for pre-defined data-* attrs during removal. Fixes #10026."
This reverts commit 6805fc2cd20e36af5c1b0c51f6f39f21cea4609a.
A more cache-friendly solution is in the works.
Diffstat (limited to 'src/data.js')
-rw-r--r-- | src/data.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/data.js b/src/data.js index 763b3df12..4f87a3550 100644 --- a/src/data.js +++ b/src/data.js @@ -167,11 +167,6 @@ jQuery.extend({ delete thisCache[ name ]; - // Check the actual element for predefined data-* attrs, #10027 - if ( jQuery.attr( elem, "data-" + name ) ) { - jQuery.removeAttr( elem, "data-" + name ); - } - // If there is no data left in the cache, we want to continue // and let the cache object itself get destroyed if ( !isEmptyDataObject(thisCache) ) { |