From 57b90752c6860267579be155e80820372c7a779f Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Thu, 29 Oct 2015 20:46:57 -0400 Subject: [PATCH] cloudsuite: remove unused webodfEditorInstance --- js/documents.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/js/documents.js b/js/documents.js index f575aef8..a7301ad9 100644 --- a/js/documents.js +++ b/js/documents.js @@ -560,14 +560,7 @@ var documentsMain = { setTimeout(OC.Notification.hide, 7000); } documentsMain.prepareGrid(); - try { - documentsMain.webodfEditorInstance.endEditing(); - documentsMain.webodfEditorInstance.closeSession(function() { - documentsMain.webodfEditorInstance.destroy(documentsMain.UI.hideEditor); - }); - } catch (e){ - documentsMain.UI.hideEditor(); - } + documentsMain.UI.hideEditor(); documentsMain.show(); $('footer,nav').show(); @@ -604,14 +597,9 @@ var documentsMain = { async: false // Should be sync to complete before the page is closed }); - - documentsMain.webodfEditorInstance.endEditing(); - documentsMain.webodfEditorInstance.closeSession(function() { if (documentsMain.isGuest){ $('footer,nav').show(); } - documentsMain.webodfEditorInstance.destroy(documentsMain.UI.hideEditor); - }); }, show: function(){