public
Description: Updated hourly from the jQuery SVN repo
Homepage: http://jquery.com
Clone URL: git://github.com/JackDanger/jquery.git
jquery dimensions & offset: moving the local function 'num' to core, so it 
can be safely used by both modules.

git-svn-id: http://jqueryjs.googlecode.com/svn/trunk@5603 
c715fcbe-d12f-0410-84c4-316a508785bb
aflesler (author)
Thu May 15 05:53:07 -0700 2008
commit  796cd87ab693a59d8feff57e398f106e765f6eb1
tree    a8819559dbf5c444734cd2fc0e8b651395950d6a
parent  be09eb32c837a0220b70a6bee8c253f7eafe0647
...
1359
1360
1361
 
 
 
 
 
1362
...
1359
1360
1361
1362
1363
1364
1365
1366
1367
0
@@ -1359,3 +1359,8 @@ jQuery.each([ "Height", "Width" ], function(i, name){
0
           this.css( type, size.constructor == String ? size : size + "px" );
0
   };
0
 });
0
+
0
+// Helper function used by the dimensions and offset modules
0
+function num(elem, prop) {
0
+ return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
0
+}
0
\ No newline at end of file
...
20
21
22
23
24
25
26
27
 
28
...
20
21
22
 
 
 
 
 
23
24
0
@@ -20,8 +20,4 @@ jQuery.each([ "Height", "Width" ], function(i, name){
0
         num(this, "margin" + tl) + num(this, "margin" + br) : 0);
0
   };
0
 
0
-});
0
-
0
-function num(elem, prop) {
0
- return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
0
-}
0
+});
0
\ No newline at end of file

Comments

    No one has commented yet.