Skip to content

Commit

Permalink
Formatting changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfxram committed Mar 30, 2012
1 parent 9de8e43 commit 4c47540
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions grails-app/taglib/org/dojotoolkit/DojoTagLib.groovy
Expand Up @@ -135,6 +135,8 @@ class DojoTagLib {
if (theme) {
out << stylesheets([theme:theme])
}

// New Dojo AMD Loader
if (attrs.async == "true") {
out << """
<script>
Expand All @@ -145,6 +147,7 @@ class DojoTagLib {
<script type='text/javascript' src='${dojoHome()}/dojoui/DojoGrailsSpinner.js'></script>
"""
}
// Use old Dojo loader
else {
out << """
<script>
Expand All @@ -155,12 +158,10 @@ class DojoTagLib {
<script type='text/javascript' src='${dojoHome()}/dojoui/DojoGrailsSpinner.js'></script>
"""
}

// if custom build then include released js files
if(includeCustomBuild == "true"){
out << customDojoScripts()
}

if (modules?.size()) {
out << require([async:attrs.async, modules:modules])
}
Expand Down

0 comments on commit 4c47540

Please sign in to comment.