mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
122f49b2dd
Change-Id: I3c20809e71cc0da58123e1b5f29c4f3aac945496
15 lines
415 B
JavaScript
15 lines
415 B
JavaScript
/*!
|
|
*
|
|
* VisualEditor skip function for classList.js.
|
|
*
|
|
* @copyright 2011-2017 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' ) )
|
|
)
|
|
);
|