From 615ec96adfa4cdb8d62a7795e774ac82f8c67cf3 Mon Sep 17 00:00:00 2001 From: MatmaRex Date: Thu, 13 Jun 2013 18:10:10 +0200 Subject: [PATCH] Quote 'class' in JS object literals It's a reserved word, old IEs see this and bail. (Conforming browsers correctly see it's an object key and parse the literal.) Reported on the English Wikipedia's WP:VPT. Change-Id: I7a032afc6d62d09a5ec32c7c8d0af5611665ea59 --- modules/ext.thanks.thank.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ext.thanks.thank.js b/modules/ext.thanks.thank.js index 85ee0abf..5b87fa58 100644 --- a/modules/ext.thanks.thank.js +++ b/modules/ext.thanks.thank.js @@ -50,7 +50,7 @@ buttons: [ { text: mw.msg( 'ok' ), - class: 'ui-button-green', + 'class': 'ui-button-green', click: function() { $( this ).dialog( "close" ); sendThanks( $thankLink );