Skip to content

Commit

Permalink
geometry的flash方法,执行结束后,将geometry的显示/隐藏状态重置为初始状态 (#1866)
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesLeocc authored Feb 9, 2023
1 parent bdd75de commit bed442c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,19 @@ export function flash(interval, count, cb, context) {
count = 4;
}
const me = this;
const initVisible = this.isVisible()
count *= 2;
if (this._flashTimeout) {
clearTimeout(this._flashTimeout);
}

function flashGeo() {
if (count === 0) {
me.show();
if (initVisible) {
me.show();
} else {
me.hide();
}
if (cb) {
if (context) {
cb.call(context);
Expand Down

0 comments on commit bed442c

Please sign in to comment.