Skip to content

Commit 57013b3

Browse files
Fixed obfuscated properties causing country code auto populate to fail (#159)
1 parent 56246b6 commit 57013b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
fixed - Fixed obfuscated property causing country code auto population to fail.

javascript/data/country.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ firebaseui.auth.data.country.LookupTree.prototype.init_ = function() {
5858
// Populate the prefix tree.
5959
for (var i = 0; i < this.countries_.length; i++) {
6060
// Construct key.
61-
var key = '+' + this.countries_[i]['e164_cc'];
61+
var key = '+' + this.countries_[i].e164_cc;
6262
// Check if key exists.
6363
var nodeValue = this.trie_.get(key);
6464
if (nodeValue) {
6565
// If so, add country object to its array.
6666
nodeValue.push(this.countries_[i]);
6767
} else {
6868
// Else add that key/value.
69-
this.trie_.add('+' + this.countries_[i]['e164_cc'], [this.countries_[i]]);
69+
this.trie_.add('+' + this.countries_[i].e164_cc, [this.countries_[i]]);
7070
}
7171
}
7272
};

0 commit comments

Comments
 (0)