Bug 950269 - Rename tech to techList in techDiscovered (Gecko side). r=yoshi
authorGarner Lee <garner.lee@telekom.com>
Thu, 09 Jan 2014 11:34:30 -0800
changeset 163388 bb7f35d963edd00c6deb7de2763f9bca14290d29
parent 163387 e60f0de566ecdebbee61b6f4f8e6563df34f6633
child 163389 45c1cc6df259d5f0a5ac434ed4159b7172bed75e
push id38465
push userkwierso@gmail.com
push dateWed, 15 Jan 2014 00:14:00 +0000
treeherdermozilla-inbound@43832758b909 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyoshi
bugs950269
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 950269 - Rename tech to techList in techDiscovered (Gecko side). r=yoshi
dom/system/gonk/nfc_worker.js
--- a/dom/system/gonk/nfc_worker.js
+++ b/dom/system/gonk/nfc_worker.js
@@ -362,40 +362,40 @@ NfcWorker[NFC_NOTIFICATION_INITIALIZED] 
     debug("Version Mismatch! Current Supported Version : " +
             NFC_MAJOR_VERSION + "." + NFC_MINOR_VERSION  +
            " Received Version : " + majorVersion + "." + minorVersion);
   }
 };
 
 NfcWorker[NFC_NOTIFICATION_TECH_DISCOVERED] = function NFC_NOTIFICATION_TECH_DISCOVERED() {
   debug("NFC_NOTIFICATION_TECH_DISCOVERED");
-  let techs     = [];
+  let techList  = [];
   let ndefMsgs  = [];
 
   let sessionId = Buf.readInt32();
   let techCount = Buf.readInt32();
   for (let count = 0; count < techCount; count++) {
     let tech = NFC_TECHS[Buf.readUint8()];
     if (tech) {
-      techs.push(tech);
+      techList.push(tech);
     }
   }
 
   let padding   = getPaddingLen(techCount);
   for (let i = 0; i < padding; i++) {
     Buf.readUint8();
   }
 
   let ndefMsgCount = Buf.readInt32();
   for (let count = 0; count < ndefMsgCount; count++) {
     ndefMsgs.push(this.unMarshallNdefMessage());
   }
   this.sendDOMMessage({type: "techDiscovered",
                        sessionId: sessionId,
-                       tech: techs,
+                       techList: techList,
                        ndef: ndefMsgs
                        });
 };
 
 NfcWorker[NFC_NOTIFICATION_TECH_LOST] = function NFC_NOTIFICATION_TECH_LOST() {
   debug("NFC_NOTIFICATION_TECH_LOST");
   let sessionId = Buf.readInt32();
   debug("sessionId = " + sessionId);