Bug 394759 - add a PluralForm setter for backward compatibility. r=gavin

This commit is contained in:
Paul O'Shannessy 2009-04-23 20:51:01 +02:00
parent 4db9a84e6a
commit 9f27260aec

View File

@ -128,11 +128,15 @@ __defineGetter__("gPrefService", function() {
}); });
__defineGetter__("PluralForm", function() { __defineGetter__("PluralForm", function() {
delete this.PluralForm delete this.PluralForm;
var tmpScope = {}; var tmpScope = {};
Cu.import("resource://gre/modules/PluralForm.jsm", tmpScope); Cu.import("resource://gre/modules/PluralForm.jsm", tmpScope);
return this.PluralForm = tmpScope.PluralForm; return this.PluralForm = tmpScope.PluralForm;
}); });
__defineSetter__("PluralForm", function (val) {
delete this.PluralForm;
return this.PluralForm = val;
});
let gInitialPages = [ let gInitialPages = [
"about:blank", "about:blank",