git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f64eb21
)
Applied arrix's fix for getting style values on elements that aren't in the DOM,...
author
John Resig
<jeresig@gmail.com>
Sun, 19 Aug 2007 07:06:15 +0000
(07:06 +0000)
committer
John Resig
<jeresig@gmail.com>
Sun, 19 Aug 2007 07:06:15 +0000
(07:06 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
bc4bcd1
..
8420525
100644
(file)
--- 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