Skip to content
Permalink
Browse files
Applied arrix's fix for getting style values on elements that aren't …
…in the DOM, in Safari. (Bug #1482)
  • Loading branch information
jeresig committed Aug 19, 2007
1 parent f64eb21 commit 735e2e8197e391c2666766d2b2ba924fe5fb73d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery/jquery.js
@@ -1509,7 +1509,7 @@ jQuery.extend({
// then some display: none elements are involved
else {
// 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);

// Go through and make them visible, but in reverse

0 comments on commit 735e2e8

Please sign in to comment.