Implement `require` for for plugin module.

This commit is contained in:
Chad Weider 2012-01-15 21:52:03 -08:00
parent fa2a6e9ee6
commit 86f31c752d
6 changed files with 36 additions and 0 deletions

View File

@ -28,6 +28,8 @@ Ace2Editor.registry = {
nextId: 1
};
var plugins = require('/plugins').plugins;
function Ace2Editor()
{
var ace2 = Ace2Editor;

View File

@ -26,6 +26,12 @@
var _MAX_LIST_LEVEL = 8;
var Changeset = require('/easysync2').Changeset
var plugins = undefined;
try {
plugins = require('/plugins').plugins;
} catch (e) {
// silence
}
function sanitizeUnicode(s)
{

View File

@ -25,6 +25,14 @@
// requires: top
// requires: plugins
// requires: undefined
var plugins = undefined;
try {
plugins = require('/plugins').plugins;
} catch (e) {
// silence
}
var domline = {};
domline.noop = function()
{};

View File

@ -24,6 +24,14 @@
// requires: top
// requires: plugins
// requires: undefined
var plugins = undefined;
try {
plugins = require('/plugins').plugins;
} catch (e) {
// silence
}
var domline = {};
domline.noop = function()
{};

View File

@ -29,6 +29,12 @@
// requires: undefined
var Changeset = require('/easysync2').Changeset
var plugins = undefined;
try {
plugins = require('/plugins').plugins;
} catch (e) {
// silence
}
var linestylefilter = {};

View File

@ -27,6 +27,12 @@
// requires: undefined
var Changeset = require('/easysync2_client').Changeset
var plugins = undefined;
try {
plugins = require('/plugins').plugins;
} catch (e) {
// silence
}
var linestylefilter = {};