This Ember CLI addon imports the es5-shim as a dependency for your for add/addon.
From within your Ember CLI application (must be >= 0.0.41), run the following:
npm install --save-dev ember-cli-es5-shimYou can now use ES5 syntax supported by es5-shim in your .js files.
For example you may choose to use function () {}.bind and expect that
phantomjs won't error out when you execute your test runner (phatomjs
does not support Function.bind out of the box.
- es5-shim
- more information on using ember-cli, visit http://www.ember-cli.com/.
research for ember-cli/ember-cli#2634 ; also see toranb/example-cli-with-phantomjs@03eceda