docs/vendor.js
function elementCreate(name, overriddenRenderer) {
    var native;
    var rendererToUse = overriddenRenderer || renderer;
    if (isProceduralRenderer(rendererToUse)) {
        native = rendererToUse.createElement(name, _currentNamespace);
    }
    else {
        if (_currentNamespace === null) {
            native = rendererToUse.createElement(name);
        }
        else {
            native = rendererToUse.createElementNS(_currentNamespace, name);
        }
    }
    return native;
}
function elementCreate(name, overriddenRenderer) {
    var native;
    var rendererToUse = overriddenRenderer || renderer;
    if (isProceduralRenderer(rendererToUse)) {
        native = rendererToUse.createElement(name, _currentNamespace);
    }
    else {
        if (_currentNamespace === null) {
            native = rendererToUse.createElement(name);
        }
        else {
            native = rendererToUse.createElementNS(_currentNamespace, name);
        }
    }
    return native;
}
function elementCreate ( name , overriddenRenderer ) { var native ; var rendererToUse = overriddenRenderer || renderer ; if ( isProceduralRenderer ( rendererToUse ) ) { native = rendererToUse . createElement ( name , _currentNamespace ) ; } else { if ( _currentNamespace === null ) { native = rendererToUse . createElement ( name ) ; } else { native = rendererToUse . createElementNS ( _currentNamespace , name ) ; } } return native ; }
Creates a native element from a tag name, using a renderer.
@param name the tag name
@param overriddenRenderer Optional A renderer to override the default one
@returns the element created
Creates a native element from a tag name using a renderer .