summaryrefslogtreecommitdiff
path: root/library/WT/Controller/Base.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/WT/Controller/Base.php')
-rw-r--r--library/WT/Controller/Base.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/WT/Controller/Base.php b/library/WT/Controller/Base.php
index afbfe809fb..729692877f 100644
--- a/library/WT/Controller/Base.php
+++ b/library/WT/Controller/Base.php
@@ -113,6 +113,8 @@ class WT_Controller_Base {
}
// Make a list of inline JavaScript, so we can render them in the footer
+ // NOTE: there is no need to use document.ready(), etc. as the JS won't be
+ // inserted until the very end of the page.
public function addInlineJavaScript($script, $priority=self::JS_PRIORITY_NORMAL) {
if (WT_DEBUG) {
/* Show where the JS was added */