Skip to content

Commit 807644f

Browse files
committed
fix return bad location in JsUtils compile
1 parent 6cf6558 commit 807644f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Ajax/JsUtils.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,12 @@ public function compile(&$view = NULL, $view_var = 'script_foot', $script_tags =
327327
$this->_compileLibrary($this->_semantic, $view);
328328
}
329329

330+
$this->jquery_code_for_compile = \array_merge($this->jquery_code_for_compile, $this->jquery_code_for_compile_at_last);
331+
330332
if (\count($this->jquery_code_for_compile) == 0) {
331333
return;
332334
}
333-
334-
$this->jquery_code_for_compile = \array_merge($this->jquery_code_for_compile, $this->jquery_code_for_compile_at_last);
335-
335+
336336
// Inline references
337337
$script = $this->ready(implode('', $this->jquery_code_for_compile));
338338
if ($this->params["defer"]) {

0 commit comments

Comments
 (0)