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

Commit

Permalink
Fix a typo in propertynames(scene)
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Apr 29, 2020
1 parent 5d0e66d commit 264328e
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 264328e

Please sign in to comment.