This Gist was automatically created by Carbide, a free online programming environment.
Last active
March 9, 2020 20:42
-
-
Save bijection/c5e1527222b5afb7e7c8348b9bca9721 to your computer and use it in GitHub Desktop.
untitled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export var count = 0 | |
var increment = () => document.body.innerHTML = count++ | |
var counter = setInterval(increment, 487) | |
console.log('init', counter) | |
export function __unload(x){ | |
console.log('\t\tunload') | |
clearInterval(counter) | |
} | |
export function __reload(x){ | |
console.log('\t\treload') | |
console.log(x.count, count) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {count} from './cell0.js' | |
count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment