Skip to content

Commit

Permalink
chore: 디버깅 로그 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
junman95 committed Dec 19, 2024
1 parent 6336eff commit 009c47d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
7 changes: 2 additions & 5 deletions src/network/router/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ class Router {
}
};

navigate = (path, redirect) => {
console.log("redirect", redirect, path);
navigate = (path) => {
if (this.isHash === true) {
window.location.hash = path;
}
Expand All @@ -81,8 +80,6 @@ class Router {
};

// popstate 발동 시 라우팅 해주는 함수(최초 인스턴스화 시에 이벤트 리스너로 등록)
// TO ASK : 예제 코드에서는 메서드로 선언 되어 있어, this바인딩을 해주는데, 그러한 점을 화살표 함수로 변경해 해결했음.
// 메서드 작성후 this바인딩을 해주는 이유가 무엇인지 궁금함.
_handlePopState = () => {
this.route(window.location.pathname);
};
Expand All @@ -101,7 +98,7 @@ class Router {
for (const guard of guards) {
const redirectPath = guard();
if (redirectPath) {
this.navigate(redirectPath, true);
this.navigate(redirectPath);
skip = true;
return;
}
Expand Down
1 change: 0 additions & 1 deletion src/pages/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ const MainPage = (dom, query) => {
if (!query) {
dom.innerHTML = render();
} else {
console.log(dom.querySelector(query), query);
dom.querySelector(query).innerHTML = render();
}
addEventListeners();
Expand Down
1 change: 0 additions & 1 deletion src/stores/FeatureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class FeatureStore extends Store {
if (feature.includes("/")) {
feature = this._pathToFeature(feature);
}
console.log(feature);
this._setState({ feature });
};

Expand Down

0 comments on commit 009c47d

Please sign in to comment.