js/OverlayScrollbars.js
function setTopRightBottomLeft(targetCSSObject, prefix, values) {
                    if (values === undefined)
                        values = [_strEmpty, _strEmpty, _strEmpty, _strEmpty];

                    targetCSSObject[prefix + _strTop] = values[0];
                    targetCSSObject[prefix + _strRight] = values[1];
                    targetCSSObject[prefix + _strBottom] = values[2];
                    targetCSSObject[prefix + _strLeft] = values[3];
                }
function setTopRightBottomLeft(targetCSSObject, prefix, values) {
                    if (values === undefined)
                        values = [_strEmpty, _strEmpty, _strEmpty, _strEmpty];

                    targetCSSObject[prefix + _strTop] = values[0];
                    targetCSSObject[prefix + _strRight] = values[1];
                    targetCSSObject[prefix + _strBottom] = values[2];
                    targetCSSObject[prefix + _strLeft] = values[3];
                }
function setTopRightBottomLeft ( targetCSSObject , prefix , values ) { if ( values === undefined ) values = [ _strEmpty , _strEmpty , _strEmpty , _strEmpty ] ; targetCSSObject [ prefix + _strTop ] = values [ 0 ] ; targetCSSObject [ prefix + _strRight ] = values [ 1 ] ; targetCSSObject [ prefix + _strBottom ] = values [ 2 ] ; targetCSSObject [ prefix + _strLeft ] = values [ 3 ] ; }
Sets the "top, right, bottom, left" properties, with a given prefix, of the given css object.
@param targetCSSObject The css object to which the values shall be applied.
@param prefix The prefix of the "top, right, bottom, left" css properties. (example: 'padding-' is a valid prefix)
@param values A array of values which shall be applied to the "top, right, bottom, left" -properties. The array order is [top, right, bottom, left].
If this argument is undefined the value '' (empty string) will be applied to all properties.
Sets the top right bottom left properties with a given prefix of the given css object .