Bug Tracker

Changeset 5603

Show
Ignore:
Timestamp:
05/15/08 12:53:07 (8 months ago)
Author:
aflesler
Message:

jquery dimensions & offset: moving the local function 'num' to core, so it can be safely used by both modules.

Location:
trunk/jquery/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/core.js

    r5601 r5603  
    13601360    }; 
    13611361}); 
     1362 
     1363// Helper function used by the dimensions and offset modules 
     1364function num(elem, prop) { 
     1365    return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0; 
     1366} 
  • trunk/jquery/src/dimensions.js

    r5596 r5603  
    2222 
    2323}); 
    24  
    25 function num(elem, prop) { 
    26     return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0; 
    27 }