From bd55d676f133a5b38ca53c33bf599d66dfe1fc87 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 31 Dec 2011 18:00:19 -0500 Subject: Changed 'locale.localize()' to global '_L' table. --- core/events.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core/events.lua') diff --git a/core/events.lua b/core/events.lua index 87861fca..fed85a72 100644 --- a/core/events.lua +++ b/core/events.lua @@ -1,7 +1,5 @@ -- Copyright 2007-2011 Mitchell mitchellcaladbolg.net. See LICENSE. -local L = locale.localize - local M = {} --[[ This comment is for LuaDoc. @@ -196,7 +194,7 @@ M.handlers = {} -- @see disconnect -- @name connect function M.connect(event, f, index) - if not event then error(L('Undefined event name')) end + if not event then error(_L['Undefined event name']) end if not M.handlers[event] then M.handlers[event] = {} end local h = M.handlers[event] if index then table.insert(h, index, f) else h[#h + 1] = f end @@ -227,7 +225,7 @@ local error_emitted = false -- otherwise. -- @name emit function M.emit(event, ...) - if not event then error(L('Undefined event name')) end + if not event then error(_L['Undefined event name']) end local h = M.handlers[event] if not h then return end local pcall, table_unpack, type = pcall, table.unpack, type -- cgit v1.2.3