ghempton / ember-layout-example

Example application using ember-layout and ember-routemanager
http://codebrief.com
37 stars 5 forks source link

Application doesn't work in Firefox #2

Open stefanozanella opened 12 years ago

stefanozanella commented 12 years ago

When opening the application in Firefox 11.0, nothing is showed. An error is reported instead:

Timestamp: 3/23/12 2:02:08 PM
Error: uncaught exception: Error: <Ember.View:ember172> - Unable to find template "main".

I got this same issue when specifying templates in HTML via script tag. To solve the problem I wrapped all the app code into $(function(){ }), so to have the Ember application being "launched" after DOM is parsed.