minor: a lot of luacheck fixes

This commit is contained in:
Qingping Hou
2016-02-15 23:10:07 -08:00
parent 5e3100874f
commit e422842256
15 changed files with 34 additions and 38 deletions

View File

@@ -1,9 +1,6 @@
local InputContainer = require("ui/widget/container/inputcontainer")
local Screen = require("device").screen
local Geom = require("ui/geometry")
local Device = require("device")
local Event = require("ui/event")
local GestureRange = require("ui/gesturerange")
local _ = require("gettext")
local ReaderRotation = InputContainer:new{
@@ -26,7 +23,7 @@ function ReaderRotation:init()
end
end
-- TODO: reset rotation on new document, maybe on new page?
-- @TODO: reset rotation on new document, maybe on new page?
function ReaderRotation:onRotate(rotate_by)
self.current_rotation = (self.current_rotation + rotate_by) % 360