mirror of
https://github.com/airstruck/luigi.git
synced 2025-11-18 12:25:06 +00:00
remove ... from style ctor
This commit is contained in:
@@ -27,14 +27,14 @@ function Layout:setStyle (rules)
|
||||
if type(rules) == 'function' then
|
||||
rules = rules()
|
||||
end
|
||||
self.style = Style(rules or {}, 'id', 'style')
|
||||
self.style = Style(rules or {}, { 'id', 'style' })
|
||||
end
|
||||
|
||||
function Layout:setTheme (rules)
|
||||
if type(rules) == 'function' then
|
||||
rules = rules()
|
||||
end
|
||||
self.theme = Style(rules or {}, 'type')
|
||||
self.theme = Style(rules or {}, { 'type' })
|
||||
end
|
||||
|
||||
function Layout:show ()
|
||||
|
||||
@@ -4,9 +4,9 @@ local Base = require(ROOT .. 'base')
|
||||
|
||||
local Style = Base:extend()
|
||||
|
||||
function Style:constructor (rules, ...)
|
||||
function Style:constructor (rules, lookupNames)
|
||||
self.rules = rules
|
||||
self.lookupNames = { ... }
|
||||
self.lookupNames = lookupNames
|
||||
end
|
||||
|
||||
function Style:getProperty (object, property)
|
||||
|
||||
Reference in New Issue
Block a user