Permalink
Browse files

minor tweak

  • Loading branch information...
1 parent aecc071 commit 8d14928c40bef592dc7640149f7e07a4cd6fbec6 @supahgreg supahgreg committed Sep 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 extension/modules/utils/Scriptish_openInEditor.js
@@ -42,9 +42,9 @@ function Scriptish_openInEditor(script, parentWindow) {
spEditor = spEditor._editor;
else if (spWin.Scratchpad.textbox)
spEditor = spWin.Scratchpad.textbox.editor;
- if (!spEditor) return;
- if (spEditor.resetModificationCount
+ if (spEditor
+ && spEditor.resetModificationCount
&& spEditor.transactionManager
&& spEditor.transactionManager.clear) {
spEditor.resetModificationCount();

0 comments on commit 8d14928

Please sign in to comment.