*/
'getLevelSelectors': function() {
var all = document.getElementsByTagName("select");
- var ours = new Array();
+ var ours = [];
for (var i = 0; i < all.length; i++) {
var element = all[i];
if (element.id.match(/^mwProtect-level-/)) {
*/
'getExpiryInputs': function() {
var all = document.getElementsByTagName("input");
- var ours = new Array();
+ var ours = [];
for (var i = 0; i < all.length; i++) {
var element = all[i];
if (element.name.match(/^mwProtect-expiry-/)) {
*/
'getExpirySelectors': function() {
var all = document.getElementsByTagName("select");
- var ours = new Array();
+ var ours = [];
for (var i = 0; i < all.length; i++) {
var element = all[i];
if (element.id.match(/^mwProtectExpirySelection-/)) {
link.setAttribute( 'title', tooltip );
}
if ( accesskey && tooltip ) {
- updateTooltipAccessKeys( new Array( link ) );
+ updateTooltipAccessKeys( [link] );
}
if ( nextnode && nextnode.parentNode == node ) {
From http://www.robertnyman.com/2005/11/07/the-ultimate-getelementsbyclassname/
*/
window.getElementsByClassName = function( oElm, strTagName, oClassNames ) {
- var arrReturnElements = new Array();
+ var arrReturnElements = [];
if ( typeof( oElm.getElementsByClassName ) == 'function' ) {
/* Use a native implementation where possible FF3, Saf3.2, Opera 9.5 */
var arrNativeReturn = oElm.getElementsByClassName( oClassNames );
return arrReturnElements;
}
var arrElements = ( strTagName == '*' && oElm.all ) ? oElm.all : oElm.getElementsByTagName( strTagName );
- var arrRegExpClassNames = new Array();
+ var arrRegExpClassNames = [];
if( typeof oClassNames == 'object' ) {
for( var i = 0; i < oClassNames.length; i++ ) {
arrRegExpClassNames[arrRegExpClassNames.length] =
if ( ie6_bugs ) {
importScriptURI( stylepath + '/common/IEFixes.js' );
-}
\ No newline at end of file
+}