apache / apache/royale-asjs

Image not removed when src set to null

Open
#60 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

This code in the Flex SDK

```






```

Will blank out the image when the Blank button is pressed and the images's source set to null.

Similar code in RoyaleJS:
```












```

Fails to blank out the image.

There's obviously a few work arounds (i.e. setting visibility) but I've run into issues with slow loading images where the wrong images displayed to the user in an application.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the RoyaleJS example in the issue and trace how the Image component handles its src update. The fix is done when setting image.src to null blanks the image and a slow, previously requested image cannot replace the cleared state.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.