Bug 1039764 - fix bad js in spellchecker context menu in Nightly.r=mconley
authorAllison Naaktgeboren <ally@mozilla.com>
Thu, 17 Jul 2014 19:06:29 -0700
changeset 216815 3b9f8506d2cf5a6fc30a61e8bc4d546aedd237a5
parent 216814 a469473e6a4387932d8717c8cc4b91f102e3aab7
child 216816 5c43367a720f0de2280fdcdbae9dcf4f27c1743b
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1039764
milestone33.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 1039764 - fix bad js in spellchecker context menu in Nightly.r=mconley
toolkit/modules/InlineSpellChecker.jsm
--- a/toolkit/modules/InlineSpellChecker.jsm
+++ b/toolkit/modules/InlineSpellChecker.jsm
@@ -186,17 +186,21 @@ InlineSpellChecker.prototype = {
       var item = menu.ownerDocument.createElement("menuitem");
       item.setAttribute("id", "spell-check-dictionary-" + sortedList[i].id);
       item.setAttribute("label", sortedList[i].label);
       item.setAttribute("type", "radio");
       this.mDictionaryItems.push(item);
       if (curlang == sortedList[i].id) {
         item.setAttribute("checked", "true");
       } else {
-        var callback = function(me, val) { return function(evt) { me.selectDictionary(val, me.menu.ownerDocument.defaultView); } };
+        var callback = function(me, val) {
+          return function(evt) {
+            me.selectDictionary(val, menu.ownerDocument.defaultView);
+          }
+        };
         item.addEventListener("command", callback(this, i), true);
       }
       if (insertBefore)
         menu.insertBefore(item, insertBefore);
       else
         menu.appendChild(item);
     }
     return list.length;