Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #627, #654 #655

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ function getLocalePaths(l) {
var codes = getLocaleCodes(l);

function getPath(l) {
return path.join('lib', 'locales', l.toLowerCase() + '.js');
return path.join('lib', 'locales', l + '.js');
}

codes.forEach(function(n) {
Expand Down
9 changes: 7 additions & 2 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ var DefaultChainable = getNewChainableClass('Chainable');
function getGlobal() {
// Get global context by keyword here to avoid issues with libraries
// that can potentially alter this script's context object.
return testGlobal(typeof global !== 'undefined' && global) ||
testGlobal(typeof window !== 'undefined' && window);
var ret = testGlobal(typeof global !== 'undefined' && global) ||
testGlobal(typeof window !== 'undefined' && window);
if (ret) return ret;
// Firefox / Thunderbird specific
if (typeof Cu != 'undefined' && typeof Cu.getGlobalForObject != 'undefined')
ret = testGlobal(Cu.getGlobalForObject(getGlobal));
return ret;
}

function testGlobal(obj) {
Expand Down