mockko / livereload

LiveReload applies CSS/JS changes to Safari or Chrome w/o reloading the page (and autoreloads the page when HTML changes)
http://livereload.com/
1.18k stars 56 forks source link

Conflicts with Canvas #37

Closed focalstrategy closed 13 years ago

focalstrategy commented 13 years ago

More of a by the way than a bug, but if you draw on a canvas, changing the JS will draw again on the canvas without clearing it first.

You can tell livereload to refresh whole page, not just js in the .livereload file, or make sure you reset the canvas as the first part of your script.

Perhaps livereload could check if you are using the canvas API and default to reloading whole page in that case?

NV commented 13 years ago

It's not about canvas. The same happens with DOM nodes, events and variables. Hope mockko guys someday pay attention to #36.

NV commented 13 years ago

Since #36 has been fixed, I close this issues.