본문 바로가기

분류 전체보기119

This value was evaluated upon first expanding. it may have changed since then. 아래 파란색 `i`를 누르면 This value was evaluated upon first expanding. it may have changed since then. 안내 문구가 나온다. 해당 상황의 경우, 클릭했을 때, console.log로 해당 className을 출력한 뒤, 클래스 이름 'open'을 추가시켜주었다. 화살표를 눌러서 확장했을 때, 현재 상태의 객체의 값이 나온다. 즉, console.log가 찍힌 시점에서는 item만 있었지만, 이후 DOMTokenList에 open이 추가가 됐고, 화살표를 눌러서 확장했을 때, 현재 상태인 item과 open을 둘 다 가지고 있다고 출력된 것이다. console.log는 비동기적으로 실행되는데, 객체의 참조를 동기적으로 받지만, 확장되기전까지.. 2021. 7. 31.
classList Element.classList Element.classList는 요소의 클래스 속성의 컬렉션인 활성DOMTokenList를 반환하는 읽기 전용 속성이다. `활성 DOMTokenList`의 활성의 의미는 아래 게시글을 참고하자. https://egas.tistory.com/80 This value was evaluated upon first expanding. it may have changed since then. 아래 파란색 `i`를 누르면 This value was evaluated upon first expanding. it may have changed since then. 안내 문구가 나온다. 해당 상황의 경우, 클릭했을 때, console.log로 해당 className을 출력한 뒤,.. e.. 2021. 7. 31.
yari new feature dayjs null error https://github.com/mdn/yari/pull/4369 missing translations by peterbe · Pull Request #4369 · mdn/yari @SphinxKnight @hochan222 @mfuji09 This is an experiment I've been working on. It's hard to find the time to really perfect this but I just didn't want to lose the work. If it works, I t... github.com @peterbe 님이 아래 두 가지에 기반해서 content와 translated content 저장소 사이의 차이를 보여주는 기능을 만들어주셨다. Translation d.. 2021. 7. 31.
cypress rightclick cypress 우클릭에 대해 알아보자. https://docs.cypress.io/api/commands/rightclick rightclick | Cypress Documentation Right click a DOM element. .rightclick() will not open context menus native to the browser. .rightclick() should be used to test your app's handling of docs.cypress.io cypress는 .rightclick()은 브라우저의 기본 contextmenu를 제공하지 않는다. 우리는 cypress의 .rightclick()을 사용해서 직접 이벤트리스너로 등록한 contextmenu를 테스트할 수 있.. 2021. 7. 31.
ripgrep 소개 (적는중) 좋다.. 빠르다.. https://github.com/BurntSushi/ripgrep GitHub - BurntSushi/ripgrep: ripgrep recursively searches directories for a regex pattern while respecting your gitignore ripgrep recursively searches directories for a regex pattern while respecting your gitignore - GitHub - BurntSushi/ripgrep: ripgrep recursively searches directories for a regex pattern while respec... github.com https://b.. 2021. 7. 30.
.filter(Boolean) https://github.com/mdn/yari/pull/4233/files에서 .filter(Boolean)를 보았다. 무슨 문법일까? avoid possible duplicate section IDs by peterbe · Pull Request #4233 · mdn/yari Fixes #4227 I ran out of time but I'd like to write an end-to-end test that checks this. That's why it's a Draft PR. Some good pages to test this on: http://localhost:3000/en-US/docs/W... github.com const allIDs = new Map(); sections .map((.. 2021. 7. 30.