Index: trunk/extensions/Translate/js/quickedit.js |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | }; |
37 | 37 | |
38 | 38 | this.cancel = function() { |
39 | | - if ( typeof this.timeoutID == 'number' ) { |
| 39 | + if ( typeof this.timeoutID === 'number' ) { |
40 | 40 | window.clearTimeout( this.timeoutID ); |
41 | 41 | delete this.timeoutID; |
42 | 42 | } |
— | — | @@ -171,9 +171,9 @@ |
172 | 172 | var page = title.replace( /[^:]+:/, '' ); |
173 | 173 | var namespace = title.replace( /:.*/, '' ); |
174 | 174 | var found = false; |
175 | | - for ( key in trlKeys ) { |
| 175 | + for ( var key in trlKeys ) { |
176 | 176 | if ( !trlKeys.hasOwnProperty(key) ) { continue; } |
177 | | - value = trlKeys[key]; |
| 177 | + var value = trlKeys[key]; |
178 | 178 | if (found) { |
179 | 179 | return trlOpenJsEdit( namespace + ':' + value ); |
180 | 180 | } else if( page === value ) { |