From 2e4f519143b7d9de6f5312240249cef89c4679b8 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 28 Jan 2011 18:33:48 +0000 Subject: [PATCH] Random fixes in mediawiki.js: add a var, fix indentation, and get our ABC right --- resources/mediawiki/mediawiki.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index 50e51ef690..90c803288b 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -307,7 +307,7 @@ window.mediaWiki = new ( function( $ ) { */ function generateId() { var id = ''; - var seed = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; + var seed = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; for ( var i = 0, r; i < 32; i++ ) { r = Math.floor( Math.random() * seed.length ); id += seed.substring( r, r + 1 ); @@ -1137,7 +1137,7 @@ window.mediaWiki = new ( function( $ ) { */ this.element = function( name, attrs, contents ) { var s = '<' + name; - for ( attrName in attrs ) { + for ( var attrName in attrs ) { s += ' ' + attrName + '="' + this.escape( attrs[attrName] ) + '"'; } if ( typeof contents == 'undefined' || contents === null ) { @@ -1147,7 +1147,7 @@ window.mediaWiki = new ( function( $ ) { } // Regular open tag s += '>'; - if (typeof contents === 'string') { + if ( typeof contents === 'string') { // Escaped s += this.escape( contents ); } else if ( contents instanceof this.Raw ) { -- 2.20.1