Skip to content

Commit c20d4b3

Browse files
authored
Merge pull request #194 from lucaboesch/javascript
[docs] Spell JavaScript correctly.
2 parents 4750b7a + 3641e18 commit c20d4b3

File tree

20 files changed

+35
-35
lines changed

20 files changed

+35
-35
lines changed

docs/apis/_files/amd-dir.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- markdownlint-disable first-line-heading -->
22
JavaScript in Moodle is written in the ESM format, and transpiled into AMD modules for deployment.
33

4-
The [Moodle JavaScript Guide](../guides/javascript) has detailed information and examples on writing JavaScript in Moodle. Further information is also available in the [Javascript Modules](https://docs.moodle.org/dev/Javascript_Modules) documentation.
4+
The [Moodle JavaScript Guide](../guides/javascript) has detailed information and examples on writing JavaScript in Moodle. Further information is also available in the [JavaScript Modules](https://docs.moodle.org/dev/Javascript_Modules) documentation.
55

66
:::caution
77

docs/apis/_files/yui-dir.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- markdownlint-disable first-line-heading -->
2-
In older versions of Moodle, JavaScript was written in the YUI format. This is being phased out in favour of [Javascript Modules](https://docs.moodle.org/dev/Javascript_Modules), although some older uses still remain in Moodle core.
2+
In older versions of Moodle, JavaScript was written in the YUI format. This is being phased out in favour of [JavaScript Modules](https://docs.moodle.org/dev/Javascript_Modules), although some older uses still remain in Moodle core.
33

44
- [YUI/Modules](https://docs.moodle.org/dev/YUI/Modules)
55
- [YUI](https://docs.moodle.org/dev/YUI)

docs/apis/plugintypes/filter/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class filter_helloworld extends moodle_text_filter {
180180

181181
## Filtering dynamic content
182182

183-
It is possible that page content is loaded by ajax after the page is loaded. In certain filter types (for example MathJax) javascript is required to be run on the output of the filter in order to do the final markup. For these types of filters, a javascript event is triggered when new content is added to the page (the content will have already been processed by the filter in php). The javascript for a filter can listen for these event notifications and reprocess the affected dom nodes.
183+
It is possible that page content is loaded by ajax after the page is loaded. In certain filter types (for example MathJax) JavaScript is required to be run on the output of the filter in order to do the final markup. For these types of filters, a JavaScript event is triggered when new content is added to the page (the content will have already been processed by the filter in php). The JavaScript for a filter can listen for these event notifications and reprocess the affected dom nodes.
184184

185185
The content updated event is registered in the `core_filters/events` module and can be imported as:
186186

docs/apis/plugintypes/format/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ However, if for some reason you cannot use the latest version of tool_pluginskel
176176
3. Rename language files in course/format/pluginname/lang/
177177
4. Change `$string['pluginname']` in course/format/pluginname/lang/en/format_pluginname.php to the new name.
178178
5. Rename class name in lib.php to format_pluginname.
179-
6. Search and replace other occurrences of the old format name, for example in renderer, capabilities names, settings, javascript libraries, etc.
179+
6. Search and replace other occurrences of the old format name, for example in renderer, capabilities names, settings, JavaScript libraries, etc.
180180
7. The new format is ready for modification.
181181
8. After modifying the code, check it with the Code checker.
182182

@@ -594,7 +594,7 @@ And third, consider using "local/content" as your main course template, "output\
594594

595595
## The course editor structure
596596

597-
The core_courseformat provides several javascript modules that will be enabled when a teacher edits the course. Those libraries use a reactive pattern to keep the course updated when some edit action is executed.
597+
The core_courseformat provides several JavaScript modules that will be enabled when a teacher edits the course. Those libraries use a reactive pattern to keep the course updated when some edit action is executed.
598598

599599
The following diagram represents the data flow of the new architecture:
600600

docs/guides/javascript/reactive/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Creating a reactive UI
33
tags:
4-
- Javascript
4+
- JavaScript
55
- Library
66
- Frontend
77
---
@@ -969,7 +969,7 @@ As can be seen in the example, the mutation does not need to enable or disable t
969969

970970
#### Private methods inside the mutations library
971971

972-
Javascript is famous for not having private methods. This means all the methods inside the mutations library will be accessible by the Reactive Instance. To prevent components from dispatch private methods the Reactive instance "dispatch" method will raise an expectation in some cases.
972+
JavaScript is famous for not having private methods. This means all the methods inside the mutations library will be accessible by the Reactive Instance. To prevent components from dispatch private methods the Reactive instance "dispatch" method will raise an expectation in some cases.
973973

974974
Mutation names that components cannot dispatch:
975975

@@ -1003,7 +1003,7 @@ When this happens, the components' stateReady hooks will be executed and the wat
10031003

10041004
#### Initial state data limitations
10051005

1006-
While the Javascript standard does not offer a suitable native solution for fully reactive data structures, implementing a deep reactive object will be a complex task. Depending on the depth of the changes tracked it will require many frontend resources and many lines of code to maintain. That is the main reason why most people use complex reactive frameworks for it.
1006+
While the JavaScript standard does not offer a suitable native solution for fully reactive data structures, implementing a deep reactive object will be a complex task. Depending on the depth of the changes tracked it will require many frontend resources and many lines of code to maintain. That is the main reason why most people use complex reactive frameworks for it.
10071007

10081008
To keep the state fast and simple, the reactive.js library can only store two kinds of data at the ROOT level:
10091009

docs/moodleapp/development/development-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ All the nomenclature can be a bit confusing, so let's do a recap:
377377

378378
## Application Lifecycle
379379

380-
When the application is launched, the contents of [index.html](#indexhtml) are rendered on screen. This file is intentionally concise because all the flare is added by Javascript, and the splash screen will be covering the application UI until it has fully started. If you are developing in the browser, this will be a blank screen for you given that the splash screen is not available on the web. We are not targeting browsers in production, so it's acceptable to have this behaviour during development.
380+
When the application is launched, the contents of [index.html](#indexhtml) are rendered on screen. This file is intentionally concise because all the flare is added by JavaScript, and the splash screen will be covering the application UI until it has fully started. If you are developing in the browser, this will be a blank screen for you given that the splash screen is not available on the web. We are not targeting browsers in production, so it's acceptable to have this behaviour during development.
381381

382382
Before the UI is rendered, the startup process will take place. First, Angular will instantiate `AppModule` and all the imported modules (features, addons, etc.), and then it will execute the initializers (this includes all the initializers, not only the ones declared under [core/initializers/](#coreinitializers)). In our application, we have overridden [Angular's initialisation service](https://angular.io/api/core/ApplicationInitStatus) to get a hold of the root injector so that we can safely use the [Service Singletons](#service-singletons) pattern within initializers. However, we should avoid this pattern within constructors, because those can be called during the instantiation phase.
383383

docs/moodleapp/development/plugins-development-guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ this.MyAddonClass
13601360
13611361
A link handler allows you to decide what to do when a link with a certain URL is clicked. This is useful, for example, to open your plugin page when a link to your plugin is clicked.
13621362
1363-
After the 4.0 version, the Moodle app automatically creates two link handlers for module plugins, you don't need to create them in your plugin's Javascript code anymore:
1363+
After the 4.0 version, the Moodle app automatically creates two link handlers for module plugins, you don't need to create them in your plugin's JavaScript code anymore:
13641364
13651365
- A handler to treat links to *mod/pluginname/view.php?id=X*. When this link is clicked, it will open your module in the app.
13661366
- A handler to treat links to *mod/pluginname/index.php?id=X*. When this link is clicked, it will open a page in the app listing all the modules of your type inside a certain course.

docs/moodleapp/development/release-process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tags:
1919
| 6. | Contact the marketing team announcing the new release and highlights. | Integration Lead |
2020
| 7. | Add new QA tests to the "Testing cases" document. New QA tests should be labeled with [qa_test_required](https://tracker.moodle.org/issues/?jql=project%20%3D%20MOBILE%20AND%20resolution%20in%20(Unresolved%2C%20Fixed)%20AND%20labels%20%3D%20qa_test_required%20ORDER%20BY%20priority%20DESC%2C%20updated%20DESC). Remove that label once are added to the document. | Tester |
2121
| 8. | Run `npm audit` to ensure all the dependencies are OK and check github vulnerabilities report. | Developer |
22-
| 9. | Freeze Cordova plugins and Javascript libraries versions (node modules) in the integration branch. | Developer |
22+
| 9. | Freeze Cordova plugins and JavaScript libraries versions (node modules) in the integration branch. | Developer |
2323
| 10. | **Start testing** | Tester |
2424

2525
## The release day
@@ -43,7 +43,7 @@ tags:
4343
| 3. | Review the users and developers documentation (check that everything is in order). Review the [docs_required and dev_docs_required_tags](https://tracker.moodle.org/issues/?jql=project%20%3D%20MOBILE%20AND%20labels%20in%20%28docs_required%2C%20dev_docs_required%29). Review the [Mobile features wiki documentation](https://docs.moodle.org/en/Moodle_Mobile_features). | All the team |
4444
| 4. | Delete the integration and desktop branches and create it again based on master. | Team Lead |
4545
| 5. | Bump version numbers in the following files in the integration branch: `config.xml` (version), `package.json` (version), `moodle.config.json` (versionname) appending a `-dev` to indicate that is a development version). | Integration Lead |
46-
| 6. | Unfreeze Cordova plugins and Javascript libraries versions (node modules). | Developer |
46+
| 6. | Unfreeze Cordova plugins and JavaScript libraries versions (node modules). | Developer |
4747
| 7. | Check that the [Docker image](https://cloud.docker.com/u/moodlehq/repository/docker/moodlehq/moodleapp/general) for the new version was successfully built. | Integration Lead |
4848
| 8. | Update of the [local_moodlemobileapp](https://moodle.org/plugins/view.php?id=997) plugin (as final release) in moodle.org/plugins. | Developer |
4949

docs/moodleapp/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The app has two types of delegates:
6161

6262
Moodle plugins can also be adapted to work with the mobile app. Given that more than one site can be used with the app, the plugins that are activated depend on the site the app is connected to. That's why they are called site plugins.
6363

64-
When the application connects with a site, it will fetch information about which plugins have mobile support and register their functionality using [the delegates system](#delegates-and-handlers). Plugins can be written using only PHP, but javascript is also supported for some advanced use-cases.
64+
When the application connects with a site, it will fetch information about which plugins have mobile support and register their functionality using [the delegates system](#delegates-and-handlers). Plugins can be written using only PHP, but JavaScript is also supported for some advanced use-cases.
6565

6666
## Platform Support
6767

general/community/credits/thirdpartylibs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ This library is not currently used in Moodle
320320

321321
:::note lib/editor
322322

323-
Javascript/HTML script to put a GUI editor in textareas on Internet Explorer and Mozilla
323+
JavaScript/HTML script to put a GUI editor in textareas on Internet Explorer and Mozilla
324324

325325
**Version**: 3.0 beta (with modifications)<br/>
326326
**License**: htmlArea License (based on BSD license)
@@ -763,7 +763,7 @@ This library is not currently used in Moodle
763763

764764
:::note lib/overlib.js
765765

766-
Javascript library to enable DHTML popups, floating windows, events etc
766+
JavaScript library to enable DHTML popups, floating windows, events etc
767767

768768
**Version**: July 2004<br/>
769769
**License**: Artistic Open Source License
@@ -779,7 +779,7 @@ Copyright © 1998-2004 Erik Bosrup
779779

780780
:::note media/player/videojs/amd/src/local/ogv/ogv.js
781781

782-
Javascript media decoder and player for Ogg Vorbis/Opus/Theora and WebM VP8/VP9/AV1 video.
782+
JavaScript media decoder and player for Ogg Vorbis/Opus/Theora and WebM VP8/VP9/AV1 video.
783783

784784
**Version**: 1.8.4<br/>
785785
**License**: MIT

0 commit comments

Comments
 (0)