Archived
1
0

Fixed bug that caused exception when Note_tree got signal for a note being removed (and it wasn't a startup note).

This commit is contained in:
Dan Helfman 2008-04-13 21:57:03 +00:00
parent b58ff2450a
commit 5af010fab7

View File

@ -2630,7 +2630,10 @@ Note_tree.prototype.add_root_link = function ( editor ) {
}
Note_tree.prototype.remove_link = function ( note_id ) {
removeElement( "note_tree_item_" + note_id );
var item = getElement( "note_tree_item_" + note_id );
if ( item )
removeElement( item );
}
Note_tree.prototype.rename_link = function ( editor, new_title ) {