Skip to content

Instantly share code, notes, and snippets.

@bijection
Last active March 9, 2020 20:42
Show Gist options
  • Save bijection/c5e1527222b5afb7e7c8348b9bca9721 to your computer and use it in GitHub Desktop.
Save bijection/c5e1527222b5afb7e7c8348b9bca9721 to your computer and use it in GitHub Desktop.
untitled
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)
}
import {count} from './cell0.js'
count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment