Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Taiko Web
Commits
378e2753
Commit
378e2753
authored
Oct 25, 2018
by
LoveEevee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix view not cleaning some variables
parent
f90f6fe6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
11 deletions
+22
-11
public/src/js/view.js
public/src/js/view.js
+15
-11
public/src/js/viewassets.js
public/src/js/viewassets.js
+7
-0
No files found.
public/src/js/view.js
View file @
378e2753
...
...
@@ -1286,22 +1286,26 @@
return
this
.
controller
.
getElapsedTime
()
}
clean
(){
this
.
draw
.
clean
()
this
.
assets
.
clean
()
this
.
titleCache
.
clean
()
this
.
comboCache
.
clean
()
if
(
this
.
multiplayer
!==
2
){
pageEvents
.
remove
(
window
,
"
resize
"
)
if
(
this
.
touchEnabled
){
pageEvents
.
remove
(
this
.
canvas
,
"
touchstart
"
)
pageEvents
.
remove
(
this
.
touchFullBtn
,
"
touchend
"
)
pageEvents
.
remove
(
this
.
touchPauseBtn
,
"
touchend
"
)
this
.
gameDiv
.
classList
.
remove
(
"
touch-visible
"
)
document
.
getElementById
(
"
version
"
).
classList
.
remove
(
"
version-hide
"
)
delete
this
.
touchDrumDiv
delete
this
.
touchDrumImg
delete
this
.
touchFullBtn
delete
this
.
touchPauseBtn
}
}
if
(
this
.
touchEnabled
){
pageEvents
.
remove
(
this
.
canvas
,
"
touchstart
"
)
pageEvents
.
remove
(
this
.
touchFullBtn
,
"
touchend
"
)
pageEvents
.
remove
(
this
.
touchPauseBtn
,
"
touchend
"
)
this
.
gameDiv
.
classList
.
remove
(
"
touch-visible
"
)
document
.
getElementById
(
"
version
"
).
classList
.
remove
(
"
version-hide
"
)
delete
this
.
touchDrumDiv
delete
this
.
touchDrumImg
delete
this
.
touchFullBtn
delete
this
.
touchPauseBtn
}
pageEvents
.
mouseRemove
(
this
)
delete
this
.
pauseMenu
delete
this
.
cursor
delete
this
.
gameDiv
...
...
public/src/js/viewassets.js
View file @
378e2753
...
...
@@ -131,4 +131,11 @@ class ViewAssets{
asset
.
changeBeatInterval
(
beatMS
,
initial
)
})
}
clean
(){
delete
this
.
ctx
delete
this
.
don
delete
this
.
fire
delete
this
.
fireworks
delete
this
.
allAssets
}
}
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