Merge "Don't strip HTML attributes from inspected links"

This commit is contained in:
jenkins-bot 2013-12-05 15:28:40 +00:00 committed by Gerrit Code Review
commit 11cd6fab6b

View file

@ -150,7 +150,7 @@ ve.ui.AnnotationInspector.prototype.setup = function ( data ) {
// Note we don't set the 'all' flag here - any non-annotated content will be annotated on close
this.initialAnnotation = this.getMatchingAnnotations( fragment ).get( 0 );
this.initialAnnotationHash = this.initialAnnotation ?
OO.getHash( this.initialAnnotation ) : null;
OO.getHash( this.initialAnnotation.getComparableObject() ) : null;
};
/**
@ -178,7 +178,7 @@ ve.ui.AnnotationInspector.prototype.teardown = function ( data ) {
if ( this.initialSelection.isCollapsed() ) {
insert = true;
}
if ( OO.getHash( annotation ) !== this.initialAnnotationHash ) {
if ( OO.getHash( annotation.getComparableObject() ) !== this.initialAnnotationHash ) {
if ( this.isNewAnnotation ) {
undo = true;
} else {