Bug 1328798 - Enable the no-delete-var rule for eslint and fix the one error spotted by the rule. r=jkt

MozReview-Commit-ID: 5wKobd1ehAu

--HG--
extra : rebase_source : 0737687ad78e796b5d97be45a2b564db97c371b5
This commit is contained in:
Jared Wein 2017-01-05 12:59:50 -05:00
parent 03a9b9a558
commit f0942cd4b3
2 changed files with 5 additions and 2 deletions

View File

@ -6664,8 +6664,8 @@ var gIdentityHandler = {
return this._identityBox = document.getElementById("identity-box");
},
get _identityPopupMultiView() {
delete _identityPopupMultiView;
return document.getElementById("identity-popup-multiView");
delete this._identityPopupMultiView;
return this._identityPopupMultiView = document.getElementById("identity-popup-multiView");
},
get _identityPopupContentHosts() {
delete this._identityPopupContentHosts;

View File

@ -66,6 +66,9 @@ module.exports = {
// Disallow the use of debugger
"no-debugger": "error",
// Disallow deleting variables
"no-delete-var": "error",
// No duplicate arguments in function declarations
"no-dupe-args": "error",