casperwang / tower-defense-1.0

1 stars 0 forks source link

You should not register eventlistener like this #2

Open JacobLinCool opened 5 years ago

JacobLinCool commented 5 years ago

https://github.com/casperwang/tower-defense-1.0/blob/4797b863ec143b77d6a6e56fd005805c09520a44/main.js#L958

casperwang commented 5 years ago

So how should I do ??

JacobLinCool notifications@github.com 於 2019年6月1日 週六 下午4:39寫道:

https://github.com/casperwang/tower-defense-1.0/blob/4797b863ec143b77d6a6e56fd005805c09520a44/main.js#L958

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/casperwang/tower-defense-1.0/issues/2?email_source=notifications&email_token=AEHYO4DIHGSU6ECTF6F2TATPYIYTXA5CNFSM4HSABA3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GXCVELA, or mute the thread https://github.com/notifications/unsubscribe-auth/AEHYO4BCJZXRYEKOTJE4HALPYIYTXANCNFSM4HSABA3A .

JacobLinCool commented 5 years ago

register a listener once only