r83139 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83138‎ | r83139 | r83140 >
Date:07:21, 3 March 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Small js issues
Modified paths:
  • /trunk/extensions/Translate/js/quickedit.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/js/quickedit.js
@@ -35,7 +35,7 @@
3636 };
3737
3838 this.cancel = function() {
39 - if ( typeof this.timeoutID == 'number' ) {
 39+ if ( typeof this.timeoutID === 'number' ) {
4040 window.clearTimeout( this.timeoutID );
4141 delete this.timeoutID;
4242 }
@@ -171,9 +171,9 @@
172172 var page = title.replace( /[^:]+:/, '' );
173173 var namespace = title.replace( /:.*/, '' );
174174 var found = false;
175 - for ( key in trlKeys ) {
 175+ for ( var key in trlKeys ) {
176176 if ( !trlKeys.hasOwnProperty(key) ) { continue; }
177 - value = trlKeys[key];
 177+ var value = trlKeys[key];
178178 if (found) {
179179 return trlOpenJsEdit( namespace + ':' + value );
180180 } else if( page === value ) {

Status & tagging log