diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-04-05 11:49:48 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-04-05 13:10:39 +0530 |
| commit | 2e051fcc4efcfe6af2d3ef22d6a4ba63c9f1c65d (patch) | |
| tree | bbea54f175105a4167f1d07ca50a4a10632b38a2 /lua/api.lua | |
| parent | 7e09b35b008f58809ac56184a4f83ab875c038e0 (diff) | |
| download | null-browser-2e051fcc4efcfe6af2d3ef22d6a4ba63c9f1c65d.tar.gz null-browser-2e051fcc4efcfe6af2d3ef22d6a4ba63c9f1c65d.zip | |
Add package path to lua (only current build dir)
Diffstat (limited to 'lua/api.lua')
| -rw-r--r-- | lua/api.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lua/api.lua b/lua/api.lua deleted file mode 100644 index b6495e0..0000000 --- a/lua/api.lua +++ /dev/null @@ -1,13 +0,0 @@ -local function shallow_copy(t) - local t2 = {} - for k, v in pairs(t) do t2[k] = v end - return t2 -end - -web.event.add_listener = function(events, opts) - opts = shallow_copy(opts or {}) - if type(events) ~= "table" then events = { events } end - opts.events = events or {} - - __internals.register_event(opts) -end |
