ember.js - jshint complains: 'Ember' is not defined -


i have standard ember main.js file, starts this:

this.app = ember.application.create({     log_transitions: true,     version: '1.0.0',     ready: function () {         console.log('app version: ' + app.version + ' ready.');     } }); 

running through jshint complains ember not being defined, true particular file in server, during deployment phase. because of this, lots of error messages shown.

ember made available in browser script tag in index.html:

<script src="scripts/vendor/ember-1.0.0-rc.2.js"></script> 

how can tell jshint ember?

the following should it:

/*global ember */ this.app = ember.application.create({     log_transitions: true,     version: '1.0.0',     ready: function () {         console.log('app version: ' + app.version + ' ready.');     } }); 

found in js hint docs


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -