* zin: rename node->isMatch to node->is.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user