Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-engine
Commits
a3eb0863
Commit
a3eb0863
authored
May 15, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复批量关闭弹窗的问
parent
ce32f4ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
StackContainer.ts
src/zeroing/game-warpper/StackContainer.ts
+9
-4
No files found.
src/zeroing/game-warpper/StackContainer.ts
View file @
a3eb0863
...
...
@@ -191,10 +191,15 @@ export class StackContainer extends Node {
return
new
Promise
(
resolve
=>
{
const
action
=
'popAll'
;
let
lastView
=
this
.
getChildAt
(
0
);
let
len
=
this
.
childNum
;
while
(
this
.
children
.
length
>
1
)
{
this
.
removeChildAt
(
1
);
if
(
len
==
0
){
resolve
();
return
;
}
let
lastView
=
this
.
getChildAt
(
len
);
while
(
this
.
children
.
length
>
2
)
{
this
.
removeChildAt
(
0
);
}
if
(
this
.
_mutex
)
{
this
.
_stack
.
splice
(
0
);
...
...
@@ -205,7 +210,7 @@ export class StackContainer extends Node {
this
.
addChild
(
view
);
}
let
data
=
{
action
,
view
,
lastView
,
options
,
hasView
:
len
>
1
};
let
data
=
{
action
,
view
,
lastView
,
options
,
hasView
:
false
};
this
.
dispatchEvent
(
Event
.
START
,
data
);
playViewEffect
(
playEffect
?
options
?
options
.
effect
:
null
:
null
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment