mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Make the debug tool (Dump all data) compatible with ve.AnnotationsSet (instead of array)"
This commit is contained in:
commit
969c256e34
|
@ -261,9 +261,8 @@ $html = '<div>' . file_get_contents( $page ) . '</div>';
|
|||
html = element.type;
|
||||
} else if ( element.length > 1 ){
|
||||
annotations = [];
|
||||
$.each(element[1], function(index, val) {
|
||||
annotations.push( val.type );
|
||||
|
||||
$.each(element[1].arr, function(index, val) {
|
||||
annotations.push( val.name );
|
||||
});
|
||||
html = element[0] + ' [' + annotations.join(', ') + ']';
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue