Skip to content

Commit 2e06e54

Browse files
mcabbottoxinabox
authored andcommitted
Revert "hasproperty" -- doesn't exist on 1.0
This reverts commit 1a0c76d.
1 parent a915233 commit 2e06e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function (project::ProjectTo{AbstractArray})(dx::AbstractArray{S,M}) where {S,M}
181181
end
182182
# Then deal with the elements. One projector if AbstractArray{<:Number},
183183
# or one per element for arrays of anything else, including arrays of arrays:
184-
dz = if hasproperty(project, :element)
184+
dz = if hasfield(typeof(backing(project)), :element)
185185
T = project_type(project.element)
186186
S <: T ? dy : map(project.element, dy)
187187
else

0 commit comments

Comments
 (0)