Skip to content

Commit 09807fb

Browse files
authored
Merge pull request #214 from korsbo/fix_213
Fix type inference of option dict. Closes #213.
2 parents f85517b + 24b3980 commit 09807fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/widgets.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,10 @@ function Options(view::Symbol,
362362
Options(view, getoptions(options); kwargs...)
363363
end
364364

365+
getoptions(options::AbstractArray{<:Union{Pair, Tuple}}) = getoptions(Dict(options))
366+
365367
function getoptions(options)
366-
opts = OrderedDict{String, eltype(options)}()
368+
opts = OrderedDict{String, eltype(values(options))}()
367369
for el in options
368370
addoption!(opts, el)
369371
end

0 commit comments

Comments
 (0)