Lang.Class in Javascript

I am trying to develop the Gnome Shell extension using GJS (Gnome Javascript), however I came across the Lang library (I think this is a library if you don't fix me). But I can not find any resources about this on the Internet.

In code, it looks something like this:

const Lang = imports.lang;

const ObjectA = new Lang.Class({ ... });

Where can I find documentation about this? Is it gnome lib? Mozilla lib?

+4
source share
1 answer

gjs - . modules/lang.js. : bind() (, make "this" ) Class, , ... It GObject ( ) .

+8

Source: https://habr.com/ru/post/1532420/


All Articles