AdamCollins / JustJS

A lightweight library that allows you to get back to JavaScript's basics by just being JavaScript.
22 stars 2 forks source link

Breaks DogeLib.coffee! #2

Open PythonNut opened 7 years ago

PythonNut commented 7 years ago

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. :(

taigrr commented 7 years ago

bump

The severity of this issue must be noted! I too, cannot stand to be left without a literary analysis of the Gungan. Please fix this library conflict!