Code cleanup
This commit is contained in:
parent
007ea0a170
commit
bb8b3a471b
3 changed files with 3 additions and 3 deletions
|
@ -985,7 +985,7 @@ local function data_register(name, callbackRead, callbackSave, callbackName)
|
||||||
callbackSave = function() end
|
callbackSave = function() end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- name callback is nill when not defined
|
-- name callback is nil when not defined
|
||||||
|
|
||||||
data_handlers[name] = { read = callbackRead, save = callbackSave, name = callbackName }
|
data_handlers[name] = { read = callbackRead, save = callbackSave, name = callbackName }
|
||||||
end
|
end
|
||||||
|
|
|
@ -179,7 +179,7 @@ function ffield_projector_key(character, keycode)
|
||||||
return true
|
return true
|
||||||
elseif character == 'e' or character == 'E' then
|
elseif character == 'e' or character == 'E' then
|
||||||
local projector = ffield_projector_getSelected()
|
local projector = ffield_projector_getSelected()
|
||||||
if projector ~= nil and projector.device ~= nill then
|
if projector ~= nil and projector.device ~= nil then
|
||||||
ffield_enable(projector)
|
ffield_enable(projector)
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
|
|
|
@ -962,7 +962,7 @@ local function data_register(name, callbackRead, callbackSave, callbackName)
|
||||||
callbackSave = function() end
|
callbackSave = function() end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- name callback is nill when not defined
|
-- name callback is nil when not defined
|
||||||
|
|
||||||
data_handlers[name] = { read = callbackRead, save = callbackSave, name = callbackName }
|
data_handlers[name] = { read = callbackRead, save = callbackSave, name = callbackName }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue