• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/buttons/buttonattributes.php
  • Класс: BitrixUIButtonsButtonAttributes
  • Вызов: ButtonAttributes::offsetUnset
public function offsetUnset($offset)
{
	$offset = mb_strtolower($offset);
	if (isset($this->attributes[$offset]) || array_key_exists($offset, $this->attributes))
	{
		unset($this->attributes[$offset]);

		return;
	}

	if (!self::hasDataPrefix($offset))
	{
		return null;
	}

	$offset = self::deleteDataPrefix($offset);
	if (isset($this->dataAttributes[$offset]) || array_key_exists($offset, $this->dataAttributes))
	{
		unset($this->dataAttributes[$offset]);
	}
}