mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
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:
parent
0b14b0da66
commit
9a4028c61f
|
@ -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>'
|
||||
|
|
Loading…
Reference in a new issue