]> source.dussan.org Git - jquery.git/commitdiff
Ensure both height and width port functions exist before attempting to run dimensions...
authorRick Waldron <waldron.rick@gmail.com>
Wed, 6 Jun 2012 21:38:52 +0000 (17:38 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Wed, 6 Jun 2012 21:38:52 +0000 (17:38 -0400)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
test/unit/dimensions.js

index a7463ff2837f2c78d483f1722a55ae84997ff7e4..04411c3192b3c15f2ce4667a9941a62ad63992c4 100644 (file)
@@ -1,4 +1,4 @@
-if( jQuery.fn.width ) {
+if ( jQuery.fn.width && jQuery.fn.height ) {
 
 module("dimensions", { teardown: moduleTeardown });