Skip to content

Commit 62a3b4e

Browse files
committed
Merge commit '6808e3bb3563504198794fcb7396eae2a2bccd8e'
Conflicts: .gitmodules Makefile.dryice.js demo/demo.js demo/kitchen-sink/boot.js kitchen-sink.html lib/ace/commands/default_commands.js lib/ace/test/tests.html package.json support/pilot
1 parent 22274e4 commit 62a3b4e

18 files changed

Lines changed: 683 additions & 787 deletions

File tree

.gitmodules

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@
55
path = node_modules/dryice
66
url = git://github.com/ajaxorg/dryice.git
77
[submodule "node_modules/pilot"]
8-
path = node_modules/pilot
9-
url = git://github.com/ajaxorg/pilot.git
10-
[submodule "node_modules/cockpit"]
11-
path = node_modules/cockpit
12-
url = git://github.com/ajaxorg/cockpit.git
8+
path = node_modules/pilot
9+
url = git://github.com/ajaxorg/pilot.git

Makefile.dryice.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ console.log('# ace worker ---------');
297297
aceHome + "/lib/ace/worker/worker.js",
298298
worker
299299
],
300-
filter: [ copy.filter.uglifyjs, filterTextPlugin ],
300+
filter: [ filterTextPlugin, copy.filter.uglifyjs ],
301301
dest: "build/src/worker-" + mode + ".js"
302302
});
303303
});
@@ -349,7 +349,7 @@ function demo() {
349349
source: [
350350
copy.source.commonjs({
351351
project: project,
352-
require: [ "pilot/index", "ace/defaults", "demo/kitchen-sink/boot" ]
352+
require: [ "demo/kitchen-sink/demo" ]
353353
})
354354
],
355355
filter: [ copy.filter.moduleDefines ],

build_support/boot_textarea.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
var require = window.__ace_shadowed__.require;
4242

4343
require("pilot/index");
44-
var catalog = require("pilot/plugin_manager").catalog;
45-
catalog.registerPlugins([ "pilot/index" ]);
4644

4745
var Dom = require("pilot/dom");
4846
var Event = require("pilot/event");
@@ -53,9 +51,6 @@ var EditSession = require("ace/edit_session").EditSession;
5351
var UndoManager = require("ace/undomanager").UndoManager;
5452
var Renderer = require("ace/virtual_renderer").VirtualRenderer;
5553

56-
var catalog = require("pilot/plugin_manager").catalog;
57-
catalog.registerPlugins([ "pilot/index" ]);
58-
5954
window.__ace_shadowed__.edit = function(el) {
6055
if (typeof(el) == "string") {
6156
el = document.getElementById(el);
@@ -68,16 +63,14 @@ window.__ace_shadowed__.edit = function(el) {
6863
var editor = new Editor(new Renderer(el, "ace/theme/textmate"));
6964
editor.setSession(doc);
7065

71-
var env = require("pilot/environment").create();
72-
catalog.startupPlugins({ env: env }).then(function() {
73-
env.document = doc;
74-
env.editor = env;
66+
var env = {};
67+
env.document = doc;
68+
env.editor = env;
69+
editor.resize();
70+
Event.addListener(window, "resize", function() {
7571
editor.resize();
76-
Event.addListener(window, "resize", function() {
77-
editor.resize();
78-
});
79-
el.env = env;
8072
});
73+
el.env = env;
8174
return editor;
8275
}
8376

demo/kitchen-sink/boot.js

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)