Code cleanup

This commit is contained in:
Unknown 2018-05-24 17:05:36 -04:00
parent 007ea0a170
commit bb8b3a471b
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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