aboutsummaryrefslogtreecommitdiff
path: root/lua/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/api.lua')
-rw-r--r--lua/api.lua13
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