From 2ef54684711f7cb6cc236877b49ebfa9eae6a6f1 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Thu, 15 May 2014 18:14:33 +0200 Subject: [PATCH] mw.ViewPageTarget.init: Remove redundant hasOwn check Follows-up e3be4a6. Object properties default to undefined, no need to check existance first. Looks like like an "isset()" in PHP for preventing E_NOTICE. Change-Id: I594b23e6caf1e17d6d5d37e6a5fd81152e78b3a6 --- modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js index 10724e52b8..b692d917e2 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js @@ -156,7 +156,6 @@ setupTabs: function () { // HACK: Remove this when the Education Program offers a proper way to detect and disable. if ( - mw.config.get( 'wgNamespaceIds' ).hasOwnProperty( 'education_program' ) && // HACK: Work around jscs.requireCamelCaseOrUpperCaseIdentifiers mw.config.get( 'wgNamespaceIds' )[ true && 'education_program' ] === mw.config.get( 'wgNamespaceNumber' ) ) {