Skip to content

Commit

Permalink
* fixes view menu giving an error when no file is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Daniels committed May 14, 2012
1 parent 90580f5 commit e50b497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins-client/ext.code/code.js
Expand Up @@ -704,9 +704,9 @@ module.exports = ext.register("ext/code/code", {

menus.addItemByPath("View/Wrap Lines", new apf.item({
type : "check",
checked : "[{tabEditors.getPage(tabEditors.activepage).$model}::@wrapmode]",
checked : "[{tabEditors.activepage && tabEditors.getPage(tabEditors.activepage).$model}::@wrapmode]",
isAvailable : function(editor){
return editor && editor.ceEditor && tabEditors.activepage;
return editor && editor.ceEditor;
}
}), 500000),

Expand Down

0 comments on commit e50b497

Please sign in to comment.