Khan / Khan/live-editor

changes to main program re-run the program without clearing the screen first when special functions are defined

Open
#211 3 comments 0 reactions 0 assignees View on GitHub
idea pjs
Dominant language
JavaScript
Stars
776
Forks
180
PR merge metrics
No merged PRs in 30d

Description

Initially I thought it was just an issue with calling `image` in the main function and the defining `mouseClicked`, but after testing different combinations it appears that as long as any special functions are defined, making changes to code in the main program will run those changes but not clear the screen. I've attached a screen shot below. Here's a link to the program: https://www.khanacademy.org/computer-programming/program-doesnt-refresh-with-getimage-and-mousedragged/5970580156448768

![screen shot 2014-12-06 at 5 20 24 pm](https://cloud.githubusercontent.com/assets/1044413/5329481/54b956da-7d6c-11e4-89e5-9c385c6ef9ed.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the behavior in the linked Khan Academy program, comparing edits to the main program with and without special functions such as mouseClicked or mouseDragged. Trace the live editor's rerun and screen-clearing entry points; done means main-program changes clear the screen before rerunning even when special functions are defined.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.