강의

멘토링

커뮤니티

Inflearn Community Q&A

re1ee's profile image
re1ee

asked

Practical front-end skills learned through Trello development: Vuejs, Vuex, Vue-Router

Card Move 3 - Refactoring

강사님

Written on

·

245

0

cDragger를 처음에 초기화할 떄 null로 설정하면 

setCardDraggable() 의 로직을 돌 때
 
if(this.cDragger) this.cDragger.destory()
이 코드가 오류가 나지 않나요?
 
처음 초기값이 drgaula객체를 할당 해준것도
아니지 않나 싶어서요.
제가 실제로 저 코드 부분에서 오류가 계속 나는데
작동은 해서 질문드립니다.
아 참고로 카드 이동할 때 마다도 오류가 납니다 ㅠ_ㅠ
 
<오류> - 이런식으로 납니다
TypeError: this.cDragger.destory is not a function
 
javascriptvuejs

Answer 1

0

오타이신거 같아요.

this.cDragger.destroy로 바꿔보세요 destory가 아닙니당.

re1ee's profile image
re1ee

asked

Ask a question