mediawiki-extensions-Visual.../modules/ve-mw/init/classListSkipFunction.js
James D. Forrester 5ecf40f51e build: Bump devDependencies to latest and make pass
babel-polyfill              6.8.0  →  6.9.1
 grunt-jscs                  2.8.0  →  3.0.0
 grunt-jsonlint              1.0.7  →  1.0.8
 grunt-stylelint             0.3.0  →  0.4.0
 stylelint-config-wikimedia  0.2.0  →  0.2.2

Change-Id: I4db467c7f2bc291a94e7bab86d18e48a44f6054c
2016-06-07 17:17:02 +01:00

15 lines
415 B
JavaScript

/*!
*
* VisualEditor skip function for classList.js.
*
* @copyright 2011-2016 VisualEditor Team and others; see http://ve.mit-license.org
* Adapted from http://purl.eligrey.com/github/classList.js/blob/master/classList.js
*/
return !!(
'classList' in document.createElement( '_' ) &&
!(
document.createElementNS &&
!( 'classList' in document.createElementNS( 'http://www.w3.org/2000/svg', 'g' ) )
)
);