Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #419 from JuliaPlots/as/fixtypo
Browse files Browse the repository at this point in the history
Fix a typo in propertynames(scene)
  • Loading branch information
SimonDanisch authored Apr 29, 2020
2 parents 8171d54 + 264328e commit 19749e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scenes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ end
# Base overloads for Scene

Base.haskey(scene::Scene, key::Symbol) = haskey(scene.attributes, key)
Base.propertynames(scene::Scene) = fieldnames(scene) propertynames(scene.attributes)
Base.propertynames(scene::Scene) = fieldnames(Scene) propertynames(scene.attributes)

function Base.getindex(scene::Scene, key::Symbol)
return haskey(scene.attributes, key) ? scene.attributes[key] : scene.theme[key]
Expand Down

0 comments on commit 19749e1

Please sign in to comment.