提交 7b148cfb 编写于 作者: K Kamran Ahmed

Minor refactoring

上级 70e2ea81
......@@ -10,6 +10,8 @@ export const ID_OVERLAY = 'driver-page-overlay';
export const ID_STAGE = 'driver-highlighted-element-stage';
export const ID_POPOVER = 'driver-popover-item';
export const DRIVER_HIGHLIGHTED_ELEMENT = 'driver-highlighted-element';
export const CLASS_POPOVER_TIP = 'driver-popover-tip';
export const CLASS_POPOVER_TITLE = 'driver-popover-title';
export const CLASS_POPOVER_DESCRIPTION = 'driver-popover-description';
......
import Position from './position';
import { ANIMATION_DURATION_MS } from "../common/constants";
import { ANIMATION_DURATION_MS, DRIVER_HIGHLIGHTED_ELEMENT } from '../common/constants';
/**
* Wrapper around DOMElements to enrich them
......@@ -140,7 +140,7 @@ export default class Element {
onDeselected() {
this.hidePopover();
this.node.classList.remove('driver-highlighted-element');
this.node.classList.remove(DRIVER_HIGHLIGHTED_ELEMENT);
this.highlightFinished = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册