Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpardee committed May 13, 2012
1 parent 663600c commit e33e3dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins-client/ext.code/code.js
Expand Up @@ -14,7 +14,6 @@ var ext = require("core/ext");
var menus = require("ext/menus/menus");
var commands = require("ext/commands/commands");
var EditSession = require("ace/edit_session").EditSession;
var HashHandler = require("ace/keyboard/hash_handler").HashHandler;
var Document = require("ace/document").Document;
var Range = require("ace/range").Range;
var MultiSelectCommands = require("ace/multi_select").commands.defaultCommands;
Expand Down Expand Up @@ -705,9 +704,9 @@ module.exports = ext.register("ext/code/code", {

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

Expand Down

0 comments on commit e33e3dd

Please sign in to comment.