From c92f4bd45f8ec3746097c944d4336d372033eabc Mon Sep 17 00:00:00 2001 From: sunhao Date: Thu, 22 Feb 2024 12:09:23 +0800 Subject: [PATCH] * zin: rename node->isMatch to node->is. --- lib/zin/core/dom.class.php | 6 +++--- lib/zin/core/hook.class.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/zin/core/dom.class.php b/lib/zin/core/dom.class.php index 9874a222ff..dbb4cf96fc 100644 --- a/lib/zin/core/dom.class.php +++ b/lib/zin/core/dom.class.php @@ -120,9 +120,9 @@ class dom } } - public function isMatch($selector) + public function is($selector) { - return $this->wg->isMatch($selector); + return $this->wg->is($selector); } /** @@ -353,7 +353,7 @@ class dom { if(!($item instanceof dom) || $item->wg->removed || in_array($item->wg->gid, $filteredList)) continue; - if($item->wg->isMatch($selector)) + if($item->wg->is($selector)) { $item->selector = $selector; $item->renderInner = isset($selector->inner) ? $selector->inner : false; diff --git a/lib/zin/core/hook.class.php b/lib/zin/core/hook.class.php index 422c4fff09..bb81376fce 100644 --- a/lib/zin/core/hook.class.php +++ b/lib/zin/core/hook.class.php @@ -152,7 +152,7 @@ class hook $selectors = parseWgSelectors($selectors); foreach($this->items as $item) { - if($item->isMatch($selectors)) return true; + if($item->is($selectors)) return true; } return false; }