command_manager is no longer a singleton

This commit is contained in:
Fabian Jakobs 2011-07-23 13:07:51 +02:00
commit c417dcd4e6
5 changed files with 136 additions and 180 deletions

View file

@ -41,7 +41,6 @@
define(function(require, exports, module) {
exports.launch = function(env) {
var commands = require("ace/commands/command_manager");
var event = require("pilot/event");
var Range = require("ace/range").Range;
var Editor = require("ace/editor").Editor;
@ -554,6 +553,8 @@ exports.launch = function(env) {
*/
// Fake-Save, works from the editor and the command line.
var commands = env.editor.commands;
commands.addCommand({
name: "save",
bindKey: {