Created
December 7, 2010 21:38
-
-
Save ericf/732461 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected void renderYUI3Seed(HtmlContentWriter container) throws IOException { | |
| this.renderYUI3Seed(container, true); | |
| } | |
| protected void renderYUI3Seed(HtmlContentWriter container, boolean includeModuleMetadata) throws IOException { | |
| if (includeModuleMetadata) | |
| this.renderYUI3Seed(container, includeModuleMetadata, isDebug ? YUI3_DEBUG_SEED_WITH_METADATA : YUI3_SEED_WITH_METADATA); | |
| else | |
| this.renderYUI3Seed(container, includeModuleMetadata, isDebug ? YUI3_DEBUG_SEED : YUI3_SEED); | |
| } | |
| protected void renderYUI3Seed(HtmlContentWriter container, boolean includeModuleMetadata, String...seed) throws IOException { | |
| container.script(TYPE_TEXT_JAVASCRIPT, src(getWebutils().getLocation(seed))); | |
| if (includeModuleMetadata) { | |
| container.script(TYPE_TEXT_JAVASCRIPT, src(getResources().getLocation(YUI_CONFIG))); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment