Bug 819250 - PhoneNumber.js overwrites national number. r=bent, a=blocking-basecamp
authorGregor Wagner <anygregor@gmail.com>
Fri, 07 Dec 2012 10:47:44 -0800
changeset 117456 a09ffd0fa42f9b6c62ae078e934281e67bcfbc29
parent 117455 13c68b7044525880253d0ee87d3d73be31e478fd
child 117457 91ede36a2a59b043fbaaa1ec049856da447e8d1a
push id1893
push userryanvm@gmail.com
push dateMon, 10 Dec 2012 18:14:28 +0000
treeherdermozilla-beta@f786ed0aea2a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbent, blocking-basecamp
bugs819250
milestone18.0
Bug 819250 - PhoneNumber.js overwrites national number. r=bent, a=blocking-basecamp
dom/phonenumberutils/PhoneNumber.jsm
--- a/dom/phonenumberutils/PhoneNumber.jsm
+++ b/dom/phonenumberutils/PhoneNumber.jsm
@@ -191,17 +191,17 @@ this.PhoneNumber = (function (dataBase) 
       var value = FormatNumber(this.regionMetaData, this.nationalNumber, false);
       Object.defineProperty(this, "nationalFormat", { value: value, enumerable: true });
       return value;
     },
     // +19497262896
     get internationalNumber() {
       var value = this.internationalFormat ? this.internationalFormat.replace(NON_DIALABLE_CHARS, "")
                                              : null;
-      Object.defineProperty(this, "nationalNumber", { value: value, enumerable: true });
+      Object.defineProperty(this, "internationalNumber", { value: value, enumerable: true });
       return value;
     }
   };
 
   // Normalize a number by converting unicode numbers and symbols to their
   // ASCII equivalents and removing all non-dialable characters.
   function NormalizeNumber(number) {
     number = number.replace(UNICODE_DIGITS,