js/OverlayScrollbars.js
function generateDiv(classesOrAttrs, content) {
                    return '<div ' + (classesOrAttrs ? type(classesOrAttrs) == TYPES.s ?
                        'class="' + classesOrAttrs + '"' :
                            (function() {
                                var key;
                                var attrs = '';
                                if(FRAMEWORK.isPlainObject(classesOrAttrs)) {
                                    for (key in classesOrAttrs)
                                        attrs += (key === 'className' ? 'class' : key) + '="' + classesOrAttrs[key] + '" ';
                                }
                                return attrs;
                            })() :
                            _strEmpty) +
                        '>' +
                        (content ? content : _strEmpty) +
                        '</div>';
                }
function generateDiv(classesOrAttrs, content) {
                    return '<div ' + (classesOrAttrs ? type(classesOrAttrs) == TYPES.s ?
                        'class="' + classesOrAttrs + '"' :
                            (function() {
                                var key;
                                var attrs = '';
                                if(FRAMEWORK.isPlainObject(classesOrAttrs)) {
                                    for (key in classesOrAttrs)
                                        attrs += (key === 'className' ? 'class' : key) + '="' + classesOrAttrs[key] + '" ';
                                }
                                return attrs;
                            })() :
                            _strEmpty) +
                        '>' +
                        (content ? content : _strEmpty) +
                        '</div>';
                }
function generateDiv ( classesOrAttrs , content ) { return '<div ' + ( classesOrAttrs ? type ( classesOrAttrs ) == TYPES . s ? 'class="' + classesOrAttrs + '"' : ( function ( ) { var key ; var attrs = '' ; if ( FRAMEWORK . isPlainObject ( classesOrAttrs ) ) { for ( key in classesOrAttrs ) attrs += ( key === 'className' ? 'class' : key ) + '="' + classesOrAttrs [ key ] + '" ' ; } return attrs ; } ) ( ) : _strEmpty ) + '>' + ( content ? content : _strEmpty ) + '</div>' ; }
Generates a string which represents a HTML div with the given classes or attributes.
@param classesOrAttrs The class of the div as string or a object which represents the attributes of the div. (The class attribute can also be written as "className".)
@param content The content of the div as string.
@returns {string} The concated string which represents a HTML div and its content.
Generates a string which represents a HTML div with the given classes or attributes .