Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@

fixed - Fixed obfuscated property causing country code auto population to fail.
4 changes: 2 additions & 2 deletions javascript/data/country.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ firebaseui.auth.data.country.LookupTree.prototype.init_ = function() {
// Populate the prefix tree.
for (var i = 0; i < this.countries_.length; i++) {
// Construct key.
var key = '+' + this.countries_[i]['e164_cc'];
var key = '+' + this.countries_[i].e164_cc;
// Check if key exists.
var nodeValue = this.trie_.get(key);
if (nodeValue) {
// If so, add country object to its array.
nodeValue.push(this.countries_[i]);
} else {
// Else add that key/value.
this.trie_.add('+' + this.countries_[i]['e164_cc'], [this.countries_[i]]);
this.trie_.add('+' + this.countries_[i].e164_cc, [this.countries_[i]]);
}
}
};
Expand Down