diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-06-12 17:32:51 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-06-12 17:32:51 -0400 |
commit | 7603ba216f35b44327c7fe9ed0a77d69356e0395 (patch) | |
tree | 914ef68edcfca4e4c96b6d2c5abe0b56f1c9f46e /indra | |
parent | d3b4b77a95baf66dcdb90c4312332bc2ac2c7663 (diff) |
Avoid messing up Lua's global namespace in 'require' modules.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/scripts/lua/LLChat.lua | 2 | ||||
-rw-r--r-- | indra/newview/scripts/lua/LLDebugSettings.lua | 2 | ||||
-rw-r--r-- | indra/newview/scripts/lua/LLFloaterAbout.lua | 2 | ||||
-rw-r--r-- | indra/newview/scripts/lua/LLGesture.lua | 2 | ||||
-rw-r--r-- | indra/newview/scripts/lua/popup.lua | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/scripts/lua/LLChat.lua b/indra/newview/scripts/lua/LLChat.lua index 7db538e837..78dca765e8 100644 --- a/indra/newview/scripts/lua/LLChat.lua +++ b/indra/newview/scripts/lua/LLChat.lua @@ -1,4 +1,4 @@ -leap = require 'leap' +local leap = require 'leap' local LLChat = {} diff --git a/indra/newview/scripts/lua/LLDebugSettings.lua b/indra/newview/scripts/lua/LLDebugSettings.lua index c250019a00..cff1a63c21 100644 --- a/indra/newview/scripts/lua/LLDebugSettings.lua +++ b/indra/newview/scripts/lua/LLDebugSettings.lua @@ -1,4 +1,4 @@ -leap = require 'leap' +local leap = require 'leap' local LLDebugSettings = {} diff --git a/indra/newview/scripts/lua/LLFloaterAbout.lua b/indra/newview/scripts/lua/LLFloaterAbout.lua index 44afee2e5c..a6e42d364f 100644 --- a/indra/newview/scripts/lua/LLFloaterAbout.lua +++ b/indra/newview/scripts/lua/LLFloaterAbout.lua @@ -1,6 +1,6 @@ -- Engage the LLFloaterAbout LLEventAPI -leap = require 'leap' +local leap = require 'leap' local LLFloaterAbout = {} diff --git a/indra/newview/scripts/lua/LLGesture.lua b/indra/newview/scripts/lua/LLGesture.lua index cb410446d7..343b611e2c 100644 --- a/indra/newview/scripts/lua/LLGesture.lua +++ b/indra/newview/scripts/lua/LLGesture.lua @@ -1,6 +1,6 @@ -- Engage the LLGesture LLEventAPI -leap = require 'leap' +local leap = require 'leap' local LLGesture = {} diff --git a/indra/newview/scripts/lua/popup.lua b/indra/newview/scripts/lua/popup.lua index 9eecc46753..8a01ab7836 100644 --- a/indra/newview/scripts/lua/popup.lua +++ b/indra/newview/scripts/lua/popup.lua @@ -1,4 +1,4 @@ -leap = require 'leap' +local leap = require 'leap' -- notification is any name defined in notifications.xml as -- <notification name=> |