Skip to content

Commit

Permalink
bugfix in redisplay: applicable(redisplay, x) always returns true bec…
Browse files Browse the repository at this point in the history
…ause the default redisplay simply calls through to display
  • Loading branch information
stevengj committed Jun 24, 2014
1 parent c300f5f commit 7dc4754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/multimedia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ end

function redisplay(x)
for i = length(displays):-1:1
applicable(redisplay, displays[i], x) &&
xdisplayable(displays[i], x) &&
@try_display return redisplay(displays[i], x)
end
throw(MethodError(redisplay, (x,)))
end

function redisplay(m::Union(MIME,String), x)
for i = length(displays):-1:1
applicable(redisplay, displays[i], m, x) &&
xdisplayable(displays[i], m, x) &&
@try_display return redisplay(displays[i], m, x)
end
throw(MethodError(redisplay, (m, x)))
Expand Down

0 comments on commit 7dc4754

Please sign in to comment.