Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Check ember version during init callback
Browse files Browse the repository at this point in the history
Fixes `Could not find module ...steam` error. Config callback caused `hasEmberHelper` to be set to `undefined`.
  • Loading branch information
luqman committed Sep 14, 2016
1 parent 028c41b commit 9a6b8ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ module.exports = {
name: 'ember-i18n',
isLocalizationFramework: true,

config: function() {
init: function() {
this._super.init && this._super.init.apply(this, arguments);

var checker = new VersionChecker(this);
var dep = checker.for('ember', 'bower');
this.hasEmberHelper = !dep.lt('1.13.0');
return this._super.config.apply(this, arguments);
},

treeFor: function(name) {
Expand Down

0 comments on commit 9a6b8ff

Please sign in to comment.