Follow-up b10bd7003: allow object instead of array for b/c with wikis running old code

Change-Id: I1566b73e0d8daea6c2e701f60cbcb9dd42129ec9
This commit is contained in:
Roan Kattouw 2016-04-26 15:57:02 -07:00
parent 91a7833209
commit 1608a5e6fc

View file

@ -481,7 +481,8 @@
data = data || {};
for ( i = 0; i < data.list.length; i++ ) {
// Backwards compatibility: data.list used to be an object
for ( i in data.list ) {
notifData = data.list[ i ];
content = notifData[ '*' ] || {};