r73056 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73055‎ | r73056 | r73057 >
Date:06:54, 15 September 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Someone is addind prototypes to my hashes....
Modified paths:
  • /trunk/extensions/Translate/js/quickedit.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/js/quickedit.js
@@ -22,7 +22,7 @@
2323 */
2424
2525 function MessageCheckUpdater( callback ) {
26 - this.callback = callback;
 26+ var callback = callback;
2727
2828 this.act = function() {
2929 callback();
@@ -161,8 +161,10 @@
162162 var namespace = title.replace( /:.*/, "");
163163 var found = false;
164164 for ( key in trlKeys ) {
 165+ if ( !typeof key !== "string" ) { continue; }
165166 value = trlKeys[key];
166167 if (found) {
 168+ console.log( value );
167169 return trlOpenJsEdit( namespace + ":" + value );
168170 } else if( page === value ) {
169171 found = true;

Status & tagging log