Convert comment block models and views to ES6.
Review Request #8555 — Created Nov. 27, 2016 and submitted
This change moves over another chunk of our javascript code to ES6. The
transformations in here are pretty straightforward: fixing up documentation
comments, making use of some additional syntactic sugar, switchingvar
for
let
/const
, etc.
Ran js-tests.
- Commit:
-
92e460054bf391614e738222e23c9deaa4b68f03e0921964d2a59494e86b60beb8b0f5affe272030
- Diff:
-
Revision 2 (+327 -224)
-
Tool: Pyflakes Processed Files: reviewboard/staticbundles.py Ignored Files: reviewboard/static/rb/js/diffviewer/models/diffCommentBlockModel.es6.js reviewboard/static/rb/js/models/screenshotCommentBlockModel.es6.js reviewboard/static/rb/js/diffviewer/views/diffCommentBlockView.es6.js reviewboard/static/rb/js/views/textBasedCommentBlockView.es6.js reviewboard/static/rb/js/models/abstractCommentBlockModel.es6.js reviewboard/static/rb/js/models/regionCommentBlockModel.es6.js reviewboard/static/rb/js/models/fileAttachmentCommentBlockModel.es6.js reviewboard/static/rb/js/views/abstractCommentBlockView.es6.js reviewboard/static/rb/js/models/textBasedCommentBlockModel.es6.js reviewboard/static/rb/js/diffviewer/views/diffCommentBlockView.js Tool: PEP8 Style Checker Processed Files: reviewboard/staticbundles.py Ignored Files: reviewboard/static/rb/js/diffviewer/models/diffCommentBlockModel.es6.js reviewboard/static/rb/js/models/screenshotCommentBlockModel.es6.js reviewboard/static/rb/js/diffviewer/views/diffCommentBlockView.es6.js reviewboard/static/rb/js/views/textBasedCommentBlockView.es6.js reviewboard/static/rb/js/models/abstractCommentBlockModel.es6.js reviewboard/static/rb/js/models/regionCommentBlockModel.es6.js reviewboard/static/rb/js/models/fileAttachmentCommentBlockModel.es6.js reviewboard/static/rb/js/views/abstractCommentBlockView.es6.js reviewboard/static/rb/js/models/textBasedCommentBlockModel.es6.js reviewboard/static/rb/js/diffviewer/views/diffCommentBlockView.js