mandulaj / Mendeleev.io

The online chemistry engine.
http://mendeleev.io
4 stars 0 forks source link

localhost:8010/index.html Duplication #1

Closed mandulaj closed 10 years ago

mandulaj commented 10 years ago

When localhost:8010/index.html is loaded the periodic table loads twice. ClickMe

mandulaj commented 10 years ago

Refreshing fixed it (probably lack of #periodic-table does it)

arselzer commented 10 years ago

Merge vllt. ?

mandulaj commented 10 years ago

Nein ein fehler im code :D

arselzer commented 10 years ago

Ich sehe es.

arselzer commented 10 years ago

Fixed.

Reassigning window.location.hash as it's current value does not trigger a hashchange event (somehow obviously).

The problem was that Mendeleev.table.show() got called twice and jQuery's $.html("") function did not work as expected.

mandulaj commented 10 years ago

I was thinking of something like that. Just didn't find the courage to look through your spaghetti code :D

arselzer commented 10 years ago

Oh danke :+1:

arselzer commented 10 years ago

https://github.com/zpiman/Mendeleev.io/commit/de05787bd89ff7b49b7237ccd5adedb2eff8a626