aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2007-12-19 18:23:46 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2007-12-19 18:23:46 +0000
commitb32ec31d896eb163c5f3d9b54ca9da3c0dd90ce0 (patch)
tree1bf667895c8cc400163e8b54ea29b64eeb8b487e /src/core.js
parent3bb82a34de18b8b8e80893571d65080bf5a4702b (diff)
downloadjquery-b32ec31d896eb163c5f3d9b54ca9da3c0dd90ce0.tar.gz
jquery-b32ec31d896eb163c5f3d9b54ca9da3c0dd90ce0.zip
Insure width/height do not return a negative number.
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index ad938f2b5..33e109b92 100644
--- a/src/core.js
+++ b/src/core.js
@@ -798,7 +798,7 @@ jQuery.extend({
else
jQuery.swap( elem, props, getWH );
- return val;
+ return Math.max(0, val);
}
return jQuery.curCSS( elem, name, force );