aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-08-19 16:30:10 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-08-19 22:58:05 -0400
commitad040181dc6c05fa37941a6c9bfbe98bdf7ba8f1 (patch)
treeb31b1c6a288d38d501c4ac238ec171868a1805b3 /src
parent9f86dc922ed832337d246d7baf8fd397dc837346 (diff)
downloadjquery-ad040181dc6c05fa37941a6c9bfbe98bdf7ba8f1.tar.gz
jquery-ad040181dc6c05fa37941a6c9bfbe98bdf7ba8f1.zip
Fix #12283. Return null for dimension getters on non elements. Fix gh-900.
Diffstat (limited to 'src')
-rw-r--r--src/dimensions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dimensions.js b/src/dimensions.js
index c8034bc61..c41cce1b3 100644
--- a/src/dimensions.js
+++ b/src/dimensions.js
@@ -35,7 +35,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
// Set width or height on the element
jQuery.style( elem, type, value, extra );
- }, type, chainable ? margin : undefined, chainable );
+ }, type, chainable ? margin : undefined, chainable, null );
};
});
});