Skip to content

Commit a132e7d

Browse files
authored
Merge pull request #318 from netzwerg/master
Improve ES6 vs. Scala.js examples
2 parents 78d928d + fed0413 commit a132e7d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/interoperability/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ xhr.onload = (e) => {
2626
var r = JSON.parse(xhr.responseText);
2727
$("#tweets").html(parseTweets(r));
2828
}
29-
}
29+
};
30+
xhr.send();
3031
{% endhighlight %}
3132
{% endcolumn %}
3233

@@ -44,6 +45,7 @@ xhr.onload = { (e: Event) =>
4445
$("#tweets").html(parseTweets(r))
4546
}
4647
}
48+
xhr.send()
4749
{% endhighlight %}
4850
{% endcolumn %}
4951
{% endcolumns %}

doc/sjs-for-js/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ xhr.onload = (e) => {
1919
var r = JSON.parse(xhr.responseText);
2020
$("#tweets").html(parseTweets(r));
2121
}
22-
}
22+
};
23+
xhr.send();
2324
{% endhighlight %}
2425
{% endcolumn %}
2526

@@ -37,6 +38,7 @@ xhr.onload = { (e: Event) =>
3738
$("#tweets").html(parseTweets(r))
3839
}
3940
}
41+
xhr.send()
4042
{% endhighlight %}
4143
{% endcolumn %}
4244
{% endcolumns %}

0 commit comments

Comments
 (0)