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
This commit is contained in:
MatmaRex 2013-06-13 18:10:10 +02:00
parent c89398aa99
commit 615ec96adf

View file

@ -50,7 +50,7 @@
buttons: [ buttons: [
{ {
text: mw.msg( 'ok' ), text: mw.msg( 'ok' ),
class: 'ui-button-green', 'class': 'ui-button-green',
click: function() { click: function() {
$( this ).dialog( "close" ); $( this ).dialog( "close" );
sendThanks( $thankLink ); sendThanks( $thankLink );