MCPcopy Create free account
hub / github.com/unconed/TermKit / reduce

Function reduce

HTML/external/jquery-ui/development-bundle/ui/jquery.ui.core.js:142–153  ·  view source on GitHub ↗
( elem, size, border, margin )

Source from the content-addressed store, hash-verified

140 };
141
142 function reduce( elem, size, border, margin ) {
143 $.each( side, function() {
144 size -= parseFloat( $.curCSS( elem, "padding" + this, true) ) || 0;
145 if ( border ) {
146 size -= parseFloat( $.curCSS( elem, "border" + this + "Width", true) ) || 0;
147 }
148 if ( margin ) {
149 size -= parseFloat( $.curCSS( elem, "margin" + this, true) ) || 0;
150 }
151 });
152 return size;
153 }
154
155 $.fn[ "inner" + name ] = function( size ) {
156 if ( size === undefined ) {

Callers 1

jquery.ui.core.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected