From 2ece009273252437281c8cc0b84ba2ec49e5d07c Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 17 Oct 2013 19:07:53 +0000 Subject: Remove all calls to 'module' in preparation for move to Lua 5.2 Use mymodule parameter for module definition. This was also helpful in revealing places where the code relied on the global environment. --- alpineversion-controller.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'alpineversion-controller.lua') diff --git a/alpineversion-controller.lua b/alpineversion-controller.lua index 4d785ae..901ea59 100644 --- a/alpineversion-controller.lua +++ b/alpineversion-controller.lua @@ -1,10 +1,11 @@ -- the alpineversion controller -module (..., package.seeall) +local mymodule = {} -default_action = "read" +mymodule.default_action = "read" -read = function (self ) +mymodule.read = function (self ) return self.model.get() end +return mymodule -- cgit v1.2.3