Skip to content

Breaks DogeLib.coffee! #2

@PythonNut

Description

@PythonNut

I've been trying to work JustJS into my latest project involving DogeLib.coffee. However, when I added JustJS, my page broke horribly!

Steps to Reproduce

JustJS version c225687.

DogeLib.coffee

console.log = (_msg) -> 
  window.onload = ->
    document.body.innerHTML = "<img src=\"https://upload.wikimedia.org/wikipedia/en/5/5f/Original_Doge_meme.jpg\">"

index.html

<!doctype html>
<html>
  <head>
    <title>Binks</title>
    <script src="DogeLib.js"></script>
    <script src="just.js"></script>
  </head>
  <body>
    <h1>A serious literary analysis of Jar Jar Binks</h1>
    <p>To be continued...</p>
  </body>
</html>

Expected behavior:

I expected to see my literary analysis of Jar Jar Binks.

Actual behavior:

I saw a doge! It was a truly horrifying experience!


I have no idea why this bug is happening (I've already spent hours troubleshooting the issue to no avail), but I really hope you can fix it. Otherwise, I don't think I'll ever be able to return to the purity of using just JavaScript. :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions