X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore.js;h=fedd292750138ea6c2bd8dea3f90a1caae3d4301;hb=54867a98033d7c1d2811308861ea5a92ef80ad4b;hp=e988d48f982cb9015720c9221823891be5ff30cf;hpb=b13a961ff58553ad76f134a3504d0c567f1703da;p=jquery.git diff --git a/src/core.js b/src/core.js index e988d48..fedd292 100644 --- a/src/core.js +++ b/src/core.js @@ -1359,3 +1359,8 @@ jQuery.each([ "Height", "Width" ], function(i, name){ this.css( type, size.constructor == String ? size : size + "px" ); }; }); + +// Helper function used by the dimensions and offset modules +function num(elem, prop) { + return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0; +} \ No newline at end of file