Applied arrix's fix for getting style values on elements that aren't in the DOM, in Safari. (Bug #1482)

This commit is contained in:
John Resig 2007-08-19 07:06:15 +00:00
parent f64eb21fad
commit 735e2e8197

View file

@ -1509,7 +1509,7 @@ jQuery.extend({
// then some display: none elements are involved // then some display: none elements are involved
else { else {
// Locate all of the parent display: none elements // Locate all of the parent display: none elements
for ( var a = elem; color(a); a = a.parentNode ) for ( var a = elem; a && color(a); a = a.parentNode )
stack.unshift(a); stack.unshift(a);
// Go through and make them visible, but in reverse // Go through and make them visible, but in reverse