Skip to content

Commit

Permalink
Merge pull request #214 from korsbo/fix_213
Browse files Browse the repository at this point in the history
Fix type inference of option dict. Closes #213.
  • Loading branch information
JobJob authored Mar 21, 2018
2 parents f85517b + 24b3980 commit 09807fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/widgets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,10 @@ function Options(view::Symbol,
Options(view, getoptions(options); kwargs...)
end

getoptions(options::AbstractArray{<:Union{Pair, Tuple}}) = getoptions(Dict(options))

function getoptions(options)
opts = OrderedDict{String, eltype(options)}()
opts = OrderedDict{String, eltype(values(options))}()
for el in options
addoption!(opts, el)
end
Expand Down

0 comments on commit 09807fb

Please sign in to comment.