fixed all tests with weird function scoping bug

This commit is contained in:
Peter Cottle 2015-03-29 13:54:03 -07:00
parent 36161d3406
commit dd4bec0597
6 changed files with 37 additions and 18 deletions

View file

@ -41,7 +41,11 @@ var init = function() {
wait: true
});
LocaleStore.subscribe(intlRefresh);
LocaleStore.subscribe(function() {
if (LocaleStore.getLocale() !== LocaleStore.getDefaultLocale()) {
intlRefresh();
}
});
events.on('vcsModeChange', vcsModeRefresh);
initRootEvents(eventBaton);
@ -64,7 +68,6 @@ var vcsModeRefresh = function(eventData) {
};
var intlRefresh = function() {
console.log('refreshing inlt');
if (!window.$) { return; }
$('span.intl-aware').each(function(i, el) {
var intl = require('../intl');