Bug 394349 - use textbox.editor.transactionManager.clear() instead of textbox.editor.enableUndo(true/false) p=Ryan Jones <sciguyryan@gmail.com> r=gavin

This commit is contained in:
asqueella@gmail.com 2007-09-02 15:08:10 -07:00
parent 5a82e02f3f
commit 3464346525

View File

@ -157,8 +157,7 @@ Sanitizer.prototype = {
var searchBar = windows.getNext().document.getElementById("searchbar"); var searchBar = windows.getNext().document.getElementById("searchbar");
if (searchBar) { if (searchBar) {
searchBar.value = ""; searchBar.value = "";
searchBar.textbox.editor.enableUndo(false); searchBar.textbox.editor.transactionManager.clear();
searchBar.textbox.editor.enableUndo(true);
} }
} }