MCPcopy Create free account
hub / github.com/TruthHun/DocHub / reduce

Function reduce

static/Home/default/js/flat-ui.js:195–206  ·  view source on GitHub ↗
( elem, size, border, margin )

Source from the content-addressed store, hash-verified

193 };
194
195 function reduce( elem, size, border, margin ) {
196 $.each( side, function() {
197 size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
198 if ( border ) {
199 size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
200 }
201 if ( margin ) {
202 size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
203 }
204 });
205 return size;
206 }
207
208 $.fn[ "inner" + name ] = function( size ) {
209 if ( size === undefined ) {

Callers 1

flat-ui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected