Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fyge_for_tb
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
王剑峰
fyge_for_tb
Commits
6b2bf658
Commit
6b2bf658
authored
Jun 04, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
313f67bf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
25 deletions
+16
-25
workspace.xml
.idea/workspace.xml
+13
-10
FYGE.js
debug/FYGE.js
+1
-0
FYGE.js.map
debug/FYGE.js.map
+1
-1
DisplayObject.ts
src/2d/display/DisplayObject.ts
+1
-6
EventDispatcher.ts
src/2d/events/EventDispatcher.ts
+0
-8
No files found.
.idea/workspace.xml
View file @
6b2bf658
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"ca828aa9-7d32-43b5-949b-5692dab70d5f"
name=
"Default Changelist"
comment=
""
/>
<list
default=
"true"
id=
"ca828aa9-7d32-43b5-949b-5692dab70d5f"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/2d/display/DisplayObject.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/2d/display/DisplayObject.ts"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_NON_ACTIVE_CHANGELIST"
value=
"false"
/>
...
...
@@ -100,7 +103,7 @@
<workItem
from=
"1591165756008"
duration=
"509000"
/>
<workItem
from=
"1591166636799"
duration=
"1935000"
/>
<workItem
from=
"1591239594676"
duration=
"141000"
/>
<workItem
from=
"1591239837585"
duration=
"
838
000"
/>
<workItem
from=
"1591239837585"
duration=
"
946
000"
/>
</task>
<servers
/>
</component>
...
...
@@ -113,22 +116,22 @@
</option>
</component>
<component
name=
"WindowStateProjectService"
>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1591240
653162
"
>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1591240
720077
"
>
<screen
x=
"1680"
y=
"-199"
width=
"1920"
height=
"1177"
/>
</state>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177"
timestamp=
"1591240
653162
"
/>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.center"
timestamp=
"1591240
653161
"
>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177"
timestamp=
"1591240
720077
"
/>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.center"
timestamp=
"1591240
720076
"
>
<screen
x=
"1680"
y=
"-199"
width=
"1920"
height=
"1177"
/>
</state>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177"
timestamp=
"1591240
653161
"
/>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.left"
timestamp=
"1591240
653160
"
>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177"
timestamp=
"1591240
720076
"
/>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.left"
timestamp=
"1591240
720075
"
>
<screen
x=
"1680"
y=
"-199"
width=
"1920"
height=
"1177"
/>
</state>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177"
timestamp=
"1591240
653160
"
/>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.right"
timestamp=
"1591240
653162
"
>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177"
timestamp=
"1591240
720075
"
/>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.right"
timestamp=
"1591240
720076
"
>
<screen
x=
"1680"
y=
"-199"
width=
"1920"
height=
"1177"
/>
</state>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177"
timestamp=
"1591240
653162
"
/>
<state
width=
"1878"
height=
"330"
key=
"GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177"
timestamp=
"1591240
720076
"
/>
<state
x=
"2305"
y=
"66"
width=
"670"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"1591239621122"
>
<screen
x=
"1680"
y=
"-199"
width=
"1920"
height=
"1177"
/>
</state>
...
...
debug/FYGE.js
View file @
6b2bf658
...
...
@@ -1396,6 +1396,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
if
(
this
.
parent
)
{
this
.
parent
.
removeChild
(
this
);
}
_super
.
prototype
.
destroy
.
call
(
this
);
this
.
transform
.
destroy
();
this
.
transform
=
null
;
this
.
_localBoundsSelf
=
null
;
...
...
debug/FYGE.js.map
View file @
6b2bf658
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/2d/display/DisplayObject.ts
View file @
6b2bf658
...
...
@@ -395,11 +395,6 @@ export class DisplayObject extends EventDispatcher {
*/
destroy
()
{
//移除所有监听
<<<<<<<
HEAD
=======
// this.removeAllEventListener();
// super.destroy();
>>>>>>>
b14a95c820b417eba6decc2ecbcf5732fa698cb4
//如果有父级,从中移除自己
this
.
removeAllEventListener
();
// super.destroy();
...
...
@@ -425,7 +420,7 @@ export class DisplayObject extends EventDispatcher {
//标记为已销毁
this
.
destroyed
=
true
;
}
get
alpha
():
number
{
...
...
src/2d/events/EventDispatcher.ts
View file @
6b2bf658
...
...
@@ -205,19 +205,11 @@ export class EventDispatcher extends HashObject {
if
(
!
event
[
"_pd"
])
{
if
(
listeners
[
i
])
{
let
listener
=
listeners
[
i
];
<<<<<<<
HEAD
let
type
=
event
.
type
;
listener
.
fn
.
call
(
listener
.
context
,
event
)
//必须做单独指向,因为有可能出现上面的fn.里执行的就是removeEventListener,导致listeners[i]不存在
if
(
listener
.
once
)
{
s
.
removeEventListener
(
type
,
listener
.
fn
,
listener
.
context
,
useCapture
);
=======
let
type
=
event
.
type
;
//防止call事件里触发其他事件导致event被修改;
listener
.
fn
.
call
(
listener
.
context
,
event
)
//必须做单独指向,因为有可能出现上面的fn.里执行的就是removeEventListener,导致listeners[i]不存在
if
(
listener
.
once
)
{
s
.
removeEventListener
(
type
/*event.type*/
,
listener
.
fn
,
listener
.
context
,
useCapture
);
>>>>>>>
b14a95c820b417eba6decc2ecbcf5732fa698cb4
}
// listeners[i](event);
}
else
{
...
...
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