aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-10-24 15:29:14 +0200
committerThomas Lange <code@nerdmind.de>2021-10-24 15:34:09 +0200
commit0f36e9595538de41022d82ab33ff633d8a5798db (patch)
treecc33c5aef3fe108aebbc43bb56e9eda0f33854b8
parent370ea75a355765f37ef70fa228c1e10be21db59d (diff)
downloadbigpipe-0f36e9595538de41022d82ab33ff633d8a5798db.tar.gz
bigpipe-0f36e9595538de41022d82ab33ff633d8a5798db.tar.xz
bigpipe-0f36e9595538de41022d82ab33ff633d8a5798db.zip
Rename misleading parameter "callback" to "code"
Rename the second parameter for the "addPhaseDoneJS" method of the Item class from the misleading name "callback" to "code" because that method doesn't expect a real JS (or PHP) callback but rather simple JS code.
-rw-r--r--include/classes/BigPipe/Item.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/classes/BigPipe/Item.php b/include/classes/BigPipe/Item.php
index 4b59347..6f0e5db 100644
--- a/include/classes/BigPipe/Item.php
+++ b/include/classes/BigPipe/Item.php
@@ -36,7 +36,7 @@ abstract class Item {
#===============================================================================
# Attach a PhaseDoneJS callback
#===============================================================================
- public function addPhaseDoneJS($phase, $callback) {
- return $this->phaseDoneJS[$phase][] = $callback;
+ public function addPhaseDoneJS($phase, $code) {
+ return $this->phaseDoneJS[$phase][] = $code;
}
}