aboutsummaryrefslogtreecommitdiffstats
path: root/src/dimensions.js
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-05-15 12:53:07 +0000
committerAriel Flesler <aflesler@gmail.com>2008-05-15 12:53:07 +0000
commit5a92ec263d8289d2b6d21bcbfe02910c47a6ea4a (patch)
tree25eb1fc1420bb9e9911d65e8fef38befc790703e /src/dimensions.js
parent1382ea8d98aa6d72c4240e42471917a350308d67 (diff)
downloadjquery-5a92ec263d8289d2b6d21bcbfe02910c47a6ea4a.tar.gz
jquery-5a92ec263d8289d2b6d21bcbfe02910c47a6ea4a.zip
jquery dimensions & offset: moving the local function 'num' to core, so it can be safely used by both modules.
Diffstat (limited to 'src/dimensions.js')
-rw-r--r--src/dimensions.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/dimensions.js b/src/dimensions.js
index 44ba35713..bcef47fdf 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