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
This commit is contained in:
Timo Tijhof 2014-05-15 18:14:33 +02:00 committed by Jforrester
parent 25d00cc777
commit 2ef5468471

View file

@ -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' )
) {