Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Meta: Move loading logic into each feature (#1694)
- Move loading logic (`when`, `where`) near the feature's code instead of being listed in 3 separate functions (`init`, `onDomReady`, `ajaxedPagesHandler`) in a different file (`content.js`) - Avoids the messy content.js list of imports/uselessFunctionNames by halving the file length - Enables us to actually list all the features in Options (not part of this PR) since they are _all_ added in `feature.add('feature-name')` on load
- Loading branch information
Showing
91 changed files
with
1,491 additions
and
780 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.