mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
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:
parent
25d00cc777
commit
2ef5468471
|
@ -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' )
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue