mediawiki-extensions-Visual.../modules/ve-mw/init/classListSkipFunction.js
James D. Forrester 122f49b2dd build: Bump file copyright notices for 2017
Change-Id: I3c20809e71cc0da58123e1b5f29c4f3aac945496
2017-01-03 08:58:33 -08:00

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' ) )
)
);