Roan officially does not owe the team lunch (at this precise moment)

Change-Id: I90a6198da97ea90f60d9668c21d7386984a03ff0
This commit is contained in:
Trevor Parscal 2012-06-07 11:33:21 -07:00
parent ffd411b5e7
commit 18461387c0

View file

@ -117,6 +117,9 @@ ve.ce.TextNode.annotationRenderers = {
*/
ve.ce.TextNode.prototype.onUpdate = function() {
var $new = $( $( '<span>' + this.getHtml() + '</span>' ).contents() );
if ( $new.length === 0 ) {
$new = $new.add( document.createTextNode( '' ) );
}
this.$.replaceWith( $new );
this.$ = $new;
};