git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jquery ajax: caching repetive conversions/checks for settings.type in $.ajax.
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
e988d48
..
fedd292
100644
(file)
--- 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" );
};
});
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