Skip to content

Commit

Permalink
Merge pull request #19 from wezm/fix-release-build
Browse files Browse the repository at this point in the history
Fix release build on emscripten targets
  • Loading branch information
therustmonk committed Dec 26, 2017
2 parents 2f18e97 + 1a1be4b commit 7ac0397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ where
// Initial call for first rendering
callback();
js! {
let callback = @{callback};
var callback = @{callback};
window.yew_loop = function() {
callback();
}
Expand Down
2 changes: 1 addition & 1 deletion src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<MSG: 'static> Timeout<MSG> for Context<MSG> {
let mut ms = duration.subsec_nanos() / 1_000_000;
ms += duration.as_secs() as u32 * 1000;
let id = js! {
let callback = @{callback};
var callback = @{callback};
let action = function() {
callback();
callback.drop();
Expand Down

0 comments on commit 7ac0397

Please sign in to comment.