We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0ec95f commit 4e9ce41Copy full SHA for 4e9ce41
Ajax/JsUtils.php
@@ -359,18 +359,19 @@ public function compile(&$view = NULL, $view_var = 'script_foot', $script_tags =
359
* @return void
360
*/
361
public function clear_compile() {
362
- $this->jquery_code_for_compile = array();
+ $this->jquery_code_for_compile = $this->jquery_code_for_compile_at_last = [];
363
}
364
365
public function getScript($offset = 0) {
366
- $code = $this->jquery_code_for_compile;
367
- if ($offset > 0)
+ $code = \array_merge($this->jquery_code_for_compile, $this->jquery_code_for_compile_at_last);
+ if ($offset > 0) {
368
$code = \array_slice($code, $offset);
369
- return implode('', $code);
+ }
370
+ return \implode('', $code);
371
372
373
public function scriptCount() {
- return \sizeof($this->jquery_code_for_compile);
374
+ return \count($this->jquery_code_for_compile);
375
376
377
/**
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments