private void renderCombinedEventScripts()
    {
        final StringBuilder combinedScript = new StringBuilder();

        for (final OnDojoReadyHeaderItem curItem : this.dojoReadyItems) {
            combinedScript.append("\n");
            combinedScript.append(curItem.getJavaScript());
            combinedScript.append(";");
        }

        if (combinedScript.length() > 0) {
            super.render(OnDojoReadyHeaderItem.forScript(combinedScript.append("\n").toString()));
        }
    }
private void renderCombinedEventScripts()
    {
        final StringBuilder combinedScript = new StringBuilder();

        for (final OnDojoReadyHeaderItem curItem : this.dojoReadyItems) {
            combinedScript.append("\n");
            combinedScript.append(curItem.getJavaScript());
            combinedScript.append(";");
        }

        if (combinedScript.length() > 0) {
            super.render(OnDojoReadyHeaderItem.forScript(combinedScript.append("\n").toString()));
        }
    }
private void renderCombinedEventScripts ( ) { final StringBuilder combinedScript = new StringBuilder ( ) ; for ( final OnDojoReadyHeaderItem curItem : this . dojoReadyItems ) { combinedScript . append ( "\n" ) ; combinedScript . append ( curItem . getJavaScript ( ) ) ; combinedScript . append ( ";" ) ; } if ( combinedScript . length ( ) > 0 ) { super . render ( OnDojoReadyHeaderItem . forScript ( combinedScript . append ( "\n" ) . toString ( ) ) ) ; } }
Combines all DOM ready and onLoad scripts and renders them as 2 script
tags.
Combines all DOM ready and onLoad scripts and renders them as 2 script tags .