X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdimensions.js;h=bcef47fdfe3da1fd9e1a27feee35a068e2045874;hb=5a92ec263d8289d2b6d21bcbfe02910c47a6ea4a;hp=44ba3571366c83178832a6098a99bcf6e121d181;hpb=1382ea8d98aa6d72c4240e42471917a350308d67;p=jquery.git diff --git a/src/dimensions.js b/src/dimensions.js index 44ba357..bcef47f 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -20,8 +20,4 @@ jQuery.each([ "Height", "Width" ], function(i, name){ num(this, "margin" + tl) + num(this, "margin" + br) : 0); }; -}); - -function num(elem, prop) { - return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0; -} +}); \ No newline at end of file