diff options
author | John Resig <jeresig@gmail.com> | 2007-08-19 07:06:15 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-08-19 07:06:15 +0000 |
commit | 735e2e8197e391c2666766d2b2ba924fe5fb73d8 (patch) | |
tree | 860ff9da68f7e8ab3d8b7c63c607a444f103eb83 /src/jquery | |
parent | f64eb21fade249bf0dc9d7ab820eafaaf4a521ad (diff) | |
download | jquery-735e2e8197e391c2666766d2b2ba924fe5fb73d8.tar.gz jquery-735e2e8197e391c2666766d2b2ba924fe5fb73d8.zip |
Applied arrix's fix for getting style values on elements that aren't in the DOM, in Safari. (Bug #1482)
Diffstat (limited to 'src/jquery')
-rw-r--r-- | src/jquery/jquery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index bc4bcd1e7..842052537 100644 --- a/src/jquery/jquery.js +++ b/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 |