Tolerate JSON stringify screwing up

Sometimes the notices come through as an object with numeric keys. Go figure.

Change-Id: I3246006afe74a9c34a0cdd5294de61691bc37a43
This commit is contained in:
Trevor Parscal 2013-06-05 16:19:41 -07:00 committed by Catrope
parent 0b14b0da66
commit 9a4028c61f

View file

@ -195,7 +195,7 @@ ve.init.mw.Target.onNoticesReady = function () {
document.body.appendChild( tmp );
// Merge locally and remotely generated notices
noticeHtmls = this.remoteNotices.slice( 0 );
noticeHtmls = Array.prototype.slice.call( this.remoteNotices );
for ( i = 0, len = this.localNoticeMessages.length; i < len; i++ ) {
noticeHtmls.push(
'<p>' + ve.init.platform.getParsedMessage( this.localNoticeMessages[i] ) + '</p>'