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.
-
-
-
reviewboard/static/rb/js/models/abstractCommentBlockModel.es6.js (Diff revision 1) Drop the comma while you're here?
Commit: |
|
||||
---|---|---|---|---|---|
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