History

Fix invalid constructor

Simon Legner committed 2 years ago

Commit c70e01f1 parent 63472e831 files · +0 −31Browse files

Unified · Split

31 files
  1. assets/javascripts/app/searcher.js +0 −1
  2. assets/javascripts/views/content/content.js +0 −1
  3. assets/javascripts/views/content/entry_page.js +0 −1
  4. assets/javascripts/views/content/offline_page.js +0 −1
  5. assets/javascripts/views/content/root_page.js +0 −1
  6. assets/javascripts/views/content/settings_page.js +0 −1
  7. assets/javascripts/views/layout/document.js +0 −1
  8. assets/javascripts/views/layout/menu.js +0 −1
  9. assets/javascripts/views/layout/mobile.js +0 −1
  10. assets/javascripts/views/layout/path.js +0 −1
  11. assets/javascripts/views/layout/resizer.js +0 −1
  12. assets/javascripts/views/layout/settings.js +0 −1
  13. assets/javascripts/views/list/list_focus.js +0 −1
  14. assets/javascripts/views/list/list_fold.js +0 −1
  15. assets/javascripts/views/list/list_select.js +0 −1
  16. assets/javascripts/views/list/paginated_list.js +0 −1
  17. assets/javascripts/views/misc/notice.js +0 −1
  18. assets/javascripts/views/misc/notif.js +0 −1
  19. assets/javascripts/views/pages/base.js +0 −1
  20. assets/javascripts/views/pages/hidden.js +0 −1
  21. assets/javascripts/views/pages/jquery.js +0 −1
  22. assets/javascripts/views/pages/sqlite.js +0 −1
  23. assets/javascripts/views/search/search.js +0 −1
  24. assets/javascripts/views/search/search_scope.js +0 −1
  25. assets/javascripts/views/sidebar/doc_list.js +0 −1
  26. assets/javascripts/views/sidebar/doc_picker.js +0 −1
  27. assets/javascripts/views/sidebar/entry_list.js +0 −1
  28. assets/javascripts/views/sidebar/results.js +0 −1
  29. assets/javascripts/views/sidebar/sidebar.js +0 −1
  30. assets/javascripts/views/sidebar/sidebar_hover.js +0 −1
  31. assets/javascripts/views/sidebar/type_list.js +0 −1
assets/javascripts/app/searcher.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS102: Remove unnecessary code created because of implicit returns6 * DS102: Remove unnecessary code created because of implicit returns
8 * DS104: Avoid inline assignments7 * DS104: Avoid inline assignments
assets/javascripts/views/content/content.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining6 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining
8 * DS104: Avoid inline assignments7 * DS104: Avoid inline assignments
assets/javascripts/views/content/entry_page.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS102: Remove unnecessary code created because of implicit returns6 * DS102: Remove unnecessary code created because of implicit returns
8 * DS205: Consider reworking code to avoid use of IIFEs7 * DS205: Consider reworking code to avoid use of IIFEs
assets/javascripts/views/content/offline_page.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS102: Remove unnecessary code created because of implicit returns6 * DS102: Remove unnecessary code created because of implicit returns
8 * DS206: Consider reworking classes to avoid initClass7 * DS206: Consider reworking classes to avoid initClass
assets/javascripts/views/content/root_page.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS206: Consider reworking classes to avoid initClass6 * DS206: Consider reworking classes to avoid initClass
8 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md7 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
assets/javascripts/views/content/settings_page.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS102: Remove unnecessary code created because of implicit returns6 * DS102: Remove unnecessary code created because of implicit returns
8 * DS205: Consider reworking code to avoid use of IIFEs7 * DS205: Consider reworking code to avoid use of IIFEs
assets/javascripts/views/layout/document.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS206: Consider reworking classes to avoid initClass6 * DS206: Consider reworking classes to avoid initClass
8 * DS207: Consider shorter variations of null checks7 * DS207: Consider shorter variations of null checks
assets/javascripts/views/layout/menu.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS206: Consider reworking classes to avoid initClass5 * DS206: Consider reworking classes to avoid initClass
7 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md6 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
8 */7 */
assets/javascripts/views/layout/mobile.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS206: Consider reworking classes to avoid initClass6 * DS206: Consider reworking classes to avoid initClass
8 * DS207: Consider shorter variations of null checks7 * DS207: Consider shorter variations of null checks
assets/javascripts/views/layout/path.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS206: Consider reworking classes to avoid initClass6 * DS206: Consider reworking classes to avoid initClass
8 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md7 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
assets/javascripts/views/layout/resizer.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS206: Consider reworking classes to avoid initClass6 * DS206: Consider reworking classes to avoid initClass
8 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md7 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
assets/javascripts/views/layout/settings.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS102: Remove unnecessary code created because of implicit returns6 * DS102: Remove unnecessary code created because of implicit returns
8 * DS205: Consider reworking code to avoid use of IIFEs7 * DS205: Consider reworking code to avoid use of IIFEs
assets/javascripts/views/list/list_focus.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS206: Consider reworking classes to avoid initClass6 * DS206: Consider reworking classes to avoid initClass
8 * DS207: Consider shorter variations of null checks7 * DS207: Consider shorter variations of null checks
assets/javascripts/views/list/list_fold.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS206: Consider reworking classes to avoid initClass6 * DS206: Consider reworking classes to avoid initClass
8 * DS207: Consider shorter variations of null checks7 * DS207: Consider shorter variations of null checks
assets/javascripts/views/list/list_select.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining6 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining
8 * DS206: Consider reworking classes to avoid initClass7 * DS206: Consider reworking classes to avoid initClass
assets/javascripts/views/list/paginated_list.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS104: Avoid inline assignments6 * DS104: Avoid inline assignments
8 * DS202: Simplify dynamic range loops7 * DS202: Simplify dynamic range loops
assets/javascripts/views/misc/notice.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS206: Consider reworking classes to avoid initClass5 * DS206: Consider reworking classes to avoid initClass
7 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md6 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
8 */7 */
assets/javascripts/views/misc/notif.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS206: Consider reworking classes to avoid initClass5 * DS206: Consider reworking classes to avoid initClass
7 * DS207: Consider shorter variations of null checks6 * DS207: Consider shorter variations of null checks
8 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md7 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
assets/javascripts/views/pages/base.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS102: Remove unnecessary code created because of implicit returns6 * DS102: Remove unnecessary code created because of implicit returns
8 * DS207: Consider shorter variations of null checks7 * DS207: Consider shorter variations of null checks
assets/javascripts/views/pages/hidden.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS206: Consider reworking classes to avoid initClass5 * DS206: Consider reworking classes to avoid initClass
7 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md6 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
8 */7 */
assets/javascripts/views/pages/jquery.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS102: Remove unnecessary code created because of implicit returns6 * DS102: Remove unnecessary code created because of implicit returns
8 * DS206: Consider reworking classes to avoid initClass7 * DS206: Consider reworking classes to avoid initClass
assets/javascripts/views/pages/sqlite.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS206: Consider reworking classes to avoid initClass5 * DS206: Consider reworking classes to avoid initClass
7 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md6 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
8 */7 */
assets/javascripts/views/search/search.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining6 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining
8 * DS206: Consider reworking classes to avoid initClass7 * DS206: Consider reworking classes to avoid initClass
assets/javascripts/views/search/search_scope.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining6 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining
8 * DS206: Consider reworking classes to avoid initClass7 * DS206: Consider reworking classes to avoid initClass
assets/javascripts/views/sidebar/doc_list.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS206: Consider reworking classes to avoid initClass6 * DS206: Consider reworking classes to avoid initClass
8 * DS207: Consider shorter variations of null checks7 * DS207: Consider shorter variations of null checks
assets/javascripts/views/sidebar/doc_picker.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS102: Remove unnecessary code created because of implicit returns6 * DS102: Remove unnecessary code created because of implicit returns
8 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining7 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining
assets/javascripts/views/sidebar/entry_list.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS206: Consider reworking classes to avoid initClass6 * DS206: Consider reworking classes to avoid initClass
8 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md7 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
assets/javascripts/views/sidebar/results.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS206: Consider reworking classes to avoid initClass6 * DS206: Consider reworking classes to avoid initClass
8 * DS207: Consider shorter variations of null checks7 * DS207: Consider shorter variations of null checks
assets/javascripts/views/sidebar/sidebar.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining6 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining
8 * DS206: Consider reworking classes to avoid initClass7 * DS206: Consider reworking classes to avoid initClass
assets/javascripts/views/sidebar/sidebar_hover.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS102: Remove unnecessary code created because of implicit returns5 * DS102: Remove unnecessary code created because of implicit returns
7 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining6 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining
8 * DS206: Consider reworking classes to avoid initClass7 * DS206: Consider reworking classes to avoid initClass
assets/javascripts/views/sidebar/type_list.js+0−1
@@ -2,7 +2,6 @@ · 1 unmodified line
2// Sanity-check the conversion and remove this comment.2// Sanity-check the conversion and remove this comment.
3/*3/*
4 * decaffeinate suggestions:4 * decaffeinate suggestions:
5 * DS002: Fix invalid constructor
6 * DS101: Remove unnecessary use of Array.from5 * DS101: Remove unnecessary use of Array.from
7 * DS102: Remove unnecessary code created because of implicit returns6 * DS102: Remove unnecessary code created because of implicit returns
8 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining7 * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining