From 7603ba216f35b44327c7fe9ed0a77d69356e0395 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Wed, 12 Jun 2024 17:32:51 -0400 Subject: Avoid messing up Lua's global namespace in 'require' modules. --- indra/newview/scripts/lua/LLChat.lua | 2 +- indra/newview/scripts/lua/LLDebugSettings.lua | 2 +- indra/newview/scripts/lua/LLFloaterAbout.lua | 2 +- indra/newview/scripts/lua/LLGesture.lua | 2 +- indra/newview/scripts/lua/popup.lua | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'indra') 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 -- -- cgit v1.2.3