The Easel Javascript library provides a full, hierarchical display list, a core interaction model, and helper classes to make working with the HTML5 Canvas element much easier.
If the browser doesn't support touch events, then calling Touch.disable causes an error. The error is because stage.touch is never initiated in Touch.enable and so trying to delete it causes an error. This is fixed by adding a check for stage.touch in Touch.disable.
If the browser doesn't support touch events, then calling Touch.disable causes an error. The error is because stage.touch is never initiated in Touch.enable and so trying to delete it causes an error. This is fixed by adding a check for stage.touch in Touch.disable.