options = function()

in lib/dd.breakpoints.js [524:554]


    options = function(opts) {
        if (typeof (opts.isResponsive) === 'boolean') {
            _options.isResponsive = opts.isResponsive;
        }

        if (typeof (opts.baseFontSize) === 'number') {
            _options.baseFontSize = opts.baseFontSize;
        }

        if (typeof (opts.breakpoints) === 'object' && opts.breakpoints.length > 0) {
            var isValid = true,
                bps = opts.breakpoints;

            // loop through the breakpoints to check validity
            for (var i = 0, len = bps.length; i < len; i += 1) {
                if ((bps[i].hasOwnProperty('name') && bps[i].hasOwnProperty('px')) === false) {
                    isValid = false;
                }
            }

            if (isValid) {
                _options.breakpoints = opts.breakpoints;
                _initBreakpoints();
            } else {
                console.warn('DD.bp: Invalid breakpoints array entered. Please use the format {name: \'string\', px: number}');
                return false;
            }
        }

        return true;
    };