git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
da51cd0
)
Merge branch 'master' of git@github.com:jquery/jquery
author
John Resig
<jeresig@gmail.com>
Thu, 10 Dec 2009 04:59:12 +0000
(20:59 -0800)
committer
John Resig
<jeresig@gmail.com>
Thu, 10 Dec 2009 04:59:12 +0000
(20:59 -0800)
src/css.js
patch
|
blob
|
history
diff --git
a/src/css.js
b/src/css.js
index
7215fe6
..
5b6b7b9
100644
(file)
--- a/
src/css.js
+++ b/
src/css.js
@@
-141,7
+141,13
@@
jQuery.extend({
name = name.replace( rupper, "-$1" ).toLowerCase();
- var computedStyle = elem.ownerDocument.defaultView.getComputedStyle( elem, null );
+ var defaultView = elem.ownerDocument.defaultView;
+
+ if ( !defaultView ) {
+ return null;
+ }
+
+ var computedStyle = defaultView.getComputedStyle( elem, null );
if ( computedStyle ) {
ret = computedStyle.getPropertyValue( name );