Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor JS code #732

Merged
merged 4 commits into from
Feb 24, 2021
Merged

Refactor JS code #732

merged 4 commits into from
Feb 24, 2021

Conversation

yusiro-bps
Copy link
Collaborator

@yusiro-bps yusiro-bps commented Feb 18, 2021

refs: #711

対応内容

  • varをlet / constに書き直す
  • global namespaceに直接定義されているfunctionをOACIS.*にまとめる

@yusiro-bps yusiro-bps force-pushed the feature/js_refactoring branch 2 times, most recently from 03ccfda to c44af89 Compare February 22, 2021 01:03
@yusiro-bps yusiro-bps marked this pull request as ready for review February 22, 2021 01:09
@yusiro-bps yusiro-bps requested a review from yohm February 22, 2021 01:13
Copy link
Member

@yohm yohm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます。素晴らしいです。1点だけ、質問をコメントしましたので回答いただけますか?

},
pageLength: 100
});
$(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらは $( ()=>{... } ) としていますが、他と同様に即時実行関数 ( ()=>{...} )() として書いていないのは何か意図があるのでしょうか?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ご指摘ありがとうございます。私が書き違えていました。ここも他と同様に関数呼び出しのタイミングによって未定義エラーにならないように即時実行関数を使うことを意図していますので修正します。

Copy link
Member

@yohm yohm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます

@yohm yohm merged commit 86950a8 into develop Feb 24, 2021
@yohm yohm deleted the feature/js_refactoring branch February 24, 2021 04:46
@yohm yohm added this to the Improvement-202103 milestone Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants