Skip to content

Commit

Permalink
Revert "hasproperty" -- doesn't exist on 1.0
Browse files Browse the repository at this point in the history
This reverts commit 1a0c76d.
  • Loading branch information
mcabbott authored and oxinabox committed Jul 20, 2021
1 parent a915233 commit 2e06e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function (project::ProjectTo{AbstractArray})(dx::AbstractArray{S,M}) where {S,M}
end
# Then deal with the elements. One projector if AbstractArray{<:Number},
# or one per element for arrays of anything else, including arrays of arrays:
dz = if hasproperty(project, :element)
dz = if hasfield(typeof(backing(project)), :element)
T = project_type(project.element)
S <: T ? dy : map(project.element, dy)
else
Expand Down

0 comments on commit 2e06e54

Please sign in to comment.