Make sure that expando properties aren't set on embed, applet, or object elements. An uncatchable exception is thrown and we must avoid it. Fixes #1675 and #2349.
This commit is contained in:
parent
7d36ccfa8e
commit
5980292856
2 changed files with 17 additions and 1 deletions
|
@ -463,7 +463,7 @@ jQuery.extend({
|
|||
|
||||
function cleanData( elems ) {
|
||||
for ( var i = 0, elem, id; (elem = elems[i]) != null; i++ ) {
|
||||
if ( (id = elem[expando]) ) {
|
||||
if ( !jQuery.noData[elem.nodeNode.toLowerCase()] && (id = elem[expando]) ) {
|
||||
delete jQuery.cache[ id ];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue