Bug 568707 - "key is not defined" results in broken form history service [r=mconnor]

Pretend to call a function with "key" to keep it around.
This commit is contained in:
Edward Lee 2010-05-27 17:32:15 -07:00
parent 6c55e65cf7
commit 55e055bb98

View File

@ -24,6 +24,9 @@ function FormNotifier() {
continue;
}
// XXX Bug 568707 Make use of "key" to prevent it from disappearing
(function(){})(key);
// Wrap the function with notifications
this[key] = function() {
let args = Array.slice(arguments);