... | ... | @@ -70,10 +70,10 @@ Helper functions for gettext. See also [examples/gettext.js][example-gettext] fo |
|
|
|
|
|
### [jsUnit](https://gitlab.gnome.org/GNOME/gjs/blob/master/modules/jsUnit.js)
|
|
|
|
|
|
Unit test functions. [Jasmine][jasmine-gjs] should be preferred, as demonstrated in the GJS [test suite][installed-tests].
|
|
|
Unit test functions. [Jasmine][jasmine-gjs] should be preferred, as demonstrated in the GJS [test suite][gjs-tests].
|
|
|
|
|
|
[jasmine-gjs]: https://github.com/ptomato/jasmine-gjs
|
|
|
[installed-tests]: https://gitlab.gnome.org/GNOME/gjs/blob/master/installed-tests/js
|
|
|
[gjs-tests]: https://gitlab.gnome.org/GNOME/gjs/blob/master/installed-tests/js
|
|
|
|
|
|
### [Lang](https://gitlab.gnome.org/GNOME/gjs/blob/master/modules/lang.js)
|
|
|
|
... | ... | @@ -106,13 +106,9 @@ var MyNewClass = class { |
|
|
}
|
|
|
```
|
|
|
|
|
|
> **PC** I'd mention here that Lang is pretty much obsolete these days too.
|
|
|
|
|
|
### [Mainloop](https://gitlab.gnome.org/GNOME/gjs/blob/master/modules/mainloop.js)
|
|
|
|
|
|
Mainloop is simply a layer of convenience and backwards-compatibility over some GLib functions (such as [`GLib.timeout_add()`][gjs-timeoutadd] which in GJS is mapped to [`g_timeout_add_full()`][c-timeoutaddfull]). It's use is not recommended.
|
|
|
|
|
|
> **TODO** Check usage recommendation
|
|
|
Mainloop is simply a layer of convenience and backwards-compatibility over some GLib functions (such as [`GLib.timeout_add()`][gjs-timeoutadd] which in GJS is mapped to [`g_timeout_add_full()`][c-timeoutaddfull]). It's use is not generally recommended anymore.
|
|
|
|
|
|
[c-timeoutaddfull]: https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html#g-timeout-add-full
|
|
|
[gjs-timeoutadd]: http://devdocs.baznga.org/glib20~2.50.0/glib.timeout_add
|
... | ... | @@ -121,8 +117,6 @@ Mainloop is simply a layer of convenience and backwards-compatibility over some |
|
|
|
|
|
Infrastructure and helpers for [standalone applications](Home#standalone-applications).
|
|
|
|
|
|
> **TODO** Create and link to a Packages page
|
|
|
|
|
|
### [Signals](https://gitlab.gnome.org/GNOME/gjs/blob/master/modules/signals.js)
|
|
|
|
|
|
GObject-like signal framework for native Javascript objects
|
... | ... | |