sbiermanlytle / iioEngine

iio Engine: A JavaScript game engine for HTML5 Canvas
http://iioengine.com
455 stars 81 forks source link

Always get an "Invalid canvas id 'foobar'" Error #2

Closed Lambdanaut closed 11 years ago

Lambdanaut commented 11 years ago

When making a call to iio.start(MyApplication, 'foobar') I will always get

Uncaught Error: ioAppManager.addCanvas: Invalid canvas id 'foobar'

This occurs even if the canvas ID is named "foobar".

Starting my app in full-screen mode with iio.start(MyApplication) on the other hand works just fine.

Lambdanaut commented 11 years ago

I figured it out. It was a bug on my part. My <canvas></canvas> element was below my <script></script>. Sorry about that!