src/extensions/default/InlineTimingFunctionEditor/BezierCurveEditor.js
function (padding) {
            var p = (typeof padding === "number") ? [padding] : padding;

            if (p.length === 1) {
                p[1] = p[0];
            }
            if (p.length === 2) {
                p[2] = p[0];
            }
            if (p.length === 3) {
                p[3] = p[1];
            }

            return p;
        }
function (padding) {
            var p = (typeof padding === "number") ? [padding] : padding;

            if (p.length === 1) {
                p[1] = p[0];
            }
            if (p.length === 2) {
                p[2] = p[0];
            }
            if (p.length === 3) {
                p[3] = p[1];
            }

            return p;
        }
function ( padding ) { var p = ( typeof padding === "number" ) ? [ padding ] : padding ; if ( p . length === 1 ) { p [ 1 ] = p [ 0 ] ; } if ( p . length === 2 ) { p [ 2 ] = p [ 0 ] ; } if ( p . length === 3 ) { p [ 3 ] = p [ 1 ] ; } return p ; }
Convert CSS padding shorthand to longhand

@param {number|Array.number} padding Element padding
@return {Array.number}
Convert CSS padding shorthand to longhand