mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
fixed all tests with weird function scoping bug
This commit is contained in:
parent
36161d3406
commit
dd4bec0597
6 changed files with 37 additions and 18 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue