Merge "Make the debug tool (Dump all data) compatible with ve.AnnotationsSet (instead of array)"

This commit is contained in:
Trevor Parscal 2012-10-19 22:22:38 +00:00 committed by Gerrit Code Review
commit 969c256e34

View file

@ -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 {