Resolves #147 Flip trees upside down with flip

This commit is contained in:
Peter Cottle 2014-01-03 10:26:39 -08:00
parent 108937aad5
commit 937977f232
12 changed files with 61 additions and 35 deletions

View file

@ -1,6 +1,7 @@
var _ = require('underscore');
var constants = require('../util/constants');
var util = require('../util');
var GlobalState = require('../util/globalState');
var strings = require('../intl/strings').strings;
@ -9,8 +10,8 @@ var getDefaultLocale = exports.getDefaultLocale = function() {
};
var getLocale = exports.getLocale = function() {
if (constants.GLOBAL.locale) {
return constants.GLOBAL.locale;
if (GlobalState.locale) {
return GlobalState.locale;
}
return getDefaultLocale();
};