Skip to content

Commit

Permalink
misc:locale.provider增加emit ready事件
Browse files Browse the repository at this point in the history
  • Loading branch information
nupthale committed Feb 17, 2017
1 parent 37af6ee commit f4f2c58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/components/i18n/locale.provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ var LocaleProvider = Component.extend({
ajax.get(`${api}?lang=${lang}`, function(json) {
LocaleProvider.locale[lang] = json;
this.$update('ready', true);

this.$emit('ready');
}.bind(this))
}
});
Expand Down

0 comments on commit f4f2c58

Please sign in to comment.