locale store and test

This commit is contained in:
Peter Cottle 2015-03-27 21:36:03 -07:00
parent eba404c595
commit ef74ac1cf8
4 changed files with 13 additions and 1 deletions

View file

@ -30,10 +30,13 @@ var LocaleStore = assign({}, EventEmitter.prototype, {
switch (action.type) {
case ActionTypes.CHANGE_LOCALE:
_locale = action.locale;
shouldInform = true;
break;
}
if (shouldInform) {
this.emit(CHANGE_EVENT);
LocaleStore.emit(CHANGE_EVENT);
}
})