Skip to content

Commit

Permalink
playground: use the term 'build' instead of 'load'
Browse files Browse the repository at this point in the history
  • Loading branch information
gazerro committed Aug 26, 2021
1 parent d4aed29 commit d30ffe9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions playground/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
source = document.getElementById("Source");

refreshLineNumbers();
source.addEventListener('scroll', refreshLineNumbers);
window.addEventListener('resize', refreshLineNumbers);
source.addEventListener("scroll", refreshLineNumbers);
window.addEventListener("resize", refreshLineNumbers);

function loadProgram() {
Scriggo.load(source.value, function (prog, error) {
function buildProgram() {
Scriggo.build(source.value, function (prog, error) {
if (program != null) {
program.release();
}
Expand Down Expand Up @@ -110,10 +110,10 @@
});
source.addEventListener("keyup", function () {
output.innerHTML = "";
loadProgram();
buildProgram();

});
loadProgram();
buildProgram();
});

};
Expand Down
2 changes: 1 addition & 1 deletion playground/scriggo.wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func main() {

Scriggo := js.ValueOf(map[string]interface{}{})

Scriggo.Set("load", js.FuncOf(func(this js.Value, args []js.Value) interface{} {
Scriggo.Set("build", js.FuncOf(func(this js.Value, args []js.Value) interface{} {
var src string
var cb js.Value
if len(args) > 0 {
Expand Down

0 comments on commit d30ffe9

Please sign in to comment.