aboutsummaryrefslogtreecommitdiffstats
path: root/include/classes
diff options
context:
space:
mode:
Diffstat (limited to 'include/classes')
-rw-r--r--include/classes/BigPipe/Item.php2
-rw-r--r--include/classes/BigPipe/Pagelet.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/classes/BigPipe/Item.php b/include/classes/BigPipe/Item.php
index 9c66eb9..cf62237 100644
--- a/include/classes/BigPipe/Item.php
+++ b/include/classes/BigPipe/Item.php
@@ -37,7 +37,7 @@ abstract class Item {
# Attach a PhaseDoneJS callback
#===============================================================================
public function addPhaseDoneJS($phase, $callback) {
- return $this->phaseDoneJS[$phase][] = removeLineBreaksAndTabs($callback);
+ return $this->phaseDoneJS[$phase][] = $callback;
}
}
?> \ No newline at end of file
diff --git a/include/classes/BigPipe/Pagelet.php b/include/classes/BigPipe/Pagelet.php
index 441c520..9e145fd 100644
--- a/include/classes/BigPipe/Pagelet.php
+++ b/include/classes/BigPipe/Pagelet.php
@@ -141,7 +141,7 @@ class Pagelet extends Item {
Resource::TYPE_STYLESHEET => $stylesheets ?? [],
Resource::TYPE_JAVASCRIPT => $javascripts ?? []
],
- 'CODE' => removeLineBreaksAndTabs($this->getJSCode()),
+ 'CODE' => $this->getJSCode(),
'PHASE' => $this->getPhaseDoneJS()
];
}