dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
filebackend: rename and simplify header sanitizing methods in SwiftFileBackend
[lhc/web/wiklou.git]
/
includes
/
libs
/
jsminplus.php
diff --git
a/includes/libs/jsminplus.php
b/includes/libs/jsminplus.php
index
3134e50
..
0eab860
100644
(file)
--- a/
includes/libs/jsminplus.php
+++ b/
includes/libs/jsminplus.php
@@
-1700,7
+1700,7
@@
class JSNode
public $funDecls = array();
public $varDecls = array();
public $funDecls = array();
public $varDecls = array();
- public function __construct($t, $type=0)
+ public function __construct($t, $type=0
, ...$nodes
)
{
if ($token = $t->currentToken())
{
{
if ($token = $t->currentToken())
{
@@
-1716,11
+1716,9
@@
class JSNode
$this->lineno = $t->lineno;
}
$this->lineno = $t->lineno;
}
-
if (($numargs = func_num_args()) > 2
)
+
foreach($nodes as $node
)
{
{
- $args = func_get_args();
- for ($i = 2; $i < $numargs; $i++)
- $this->addNode($args[$i]);
+ $this->addNode($node);
}
}
}
}