Migrate some more code to ES6 (3)
Review Request #10413 — Created Feb. 17, 2019 and submitted
This change converts the remaining non-test code to ES6. This is just a
grab-bag of remaining files throughout the code.
Ran js-tests.
Summary | ID |
---|---|
5e83484bb6c85ad64911fb2fd5ab3ff7ae1bc2cf |
Description | From | Last Updated |
---|---|---|
Can you make these single-quote strings while these lines are being changed? |
chipx86 | |
Maybe more work than you want to do here, but this would be simplified so much if we just calculated … |
chipx86 | |
Single quotes? |
chipx86 | |
$element |
chipx86 | |
Want to use template literals here? |
chipx86 | |
Single quotes? |
chipx86 | |
I feel like this reads a lot better the old way: $(...).on('click', () => { ... }); |
chipx86 | |
Can the $( go on the second line? |
chipx86 | |
There's a space here. |
chipx86 | |
Can you switch these to this.listenTo() calls? |
chipx86 | |
This can move into the if. It's unused otherwise. |
chipx86 | |
MaMaMaMaMaMa |
chipx86 |
-
-
reviewboard/static/rb/js/admin/admin.es6.js (Diff revision 1) Can you make these single-quote strings while these lines are being changed?
-
reviewboard/static/rb/js/admin/admin.es6.js (Diff revision 1) Maybe more work than you want to do here, but this would be simplified so much if we just calculated the
admin-widgets
vsadmin-extras
in theif
and then just plugged that into the selector once, since the rest is all just copy/paste. -
-
-
-
-
reviewboard/static/rb/js/admin/admin.es6.js (Diff revision 1) I feel like this reads a lot better the old way:
$(...).on('click', () => { ... });
-
reviewboard/static/rb/js/admin/repositoryform.es6.js (Diff revision 1) Can the
$(
go on the second line? -
-
reviewboard/static/rb/js/reviewRequestPage/views/reviewReplyDraftBannerView.es6.js (Diff revision 1) Can you switch these to
this.listenTo()
calls? -
-
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+1628 -1408) |