Format fixes
parent
8b24f256aa
commit
d8483d6992
|
@ -101,9 +101,11 @@ export default {
|
||||||
},
|
},
|
||||||
onMouseEnter(event) {
|
onMouseEnter(event) {
|
||||||
this.props.onMouseEnter && this.props.onMouseEnter(event);
|
this.props.onMouseEnter && this.props.onMouseEnter(event);
|
||||||
|
|
||||||
if (event.defaultPrevented) {
|
if (event.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.message.life) {
|
if (this.message.life) {
|
||||||
this.lifeRemaining = this.createdAt + this.lifeRemaining - Date().valueOf();
|
this.lifeRemaining = this.createdAt + this.lifeRemaining - Date().valueOf();
|
||||||
this.createdAt = null;
|
this.createdAt = null;
|
||||||
|
@ -112,9 +114,11 @@ export default {
|
||||||
},
|
},
|
||||||
onMouseLeave(event) {
|
onMouseLeave(event) {
|
||||||
this.props.onMouseLeave && this.props.onMouseLeave(event);
|
this.props.onMouseLeave && this.props.onMouseLeave(event);
|
||||||
|
|
||||||
if (event.defaultPrevented) {
|
if (event.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.message.life) {
|
if (this.message.life) {
|
||||||
this.startTimeout();
|
this.startTimeout();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue