Define packaging for iframe JS in the same way as pad.js and timeslider.js.

This commit is contained in:
Chad Weider 2012-01-31 00:12:10 -08:00
parent 458b5a4f03
commit 348e7ef1d5
3 changed files with 38 additions and 36 deletions

View file

@ -239,9 +239,15 @@ function getAceFile(callback) {
// the kernel isnt actually on the file system.
handleEmbed(null, requireDefinition());
} else {
fs.readFile(ROOT_DIR + filename, "utf8", function (error, data) {
handleEmbed(error, isolateJS(data, shortFilename));
});
var contents = '';
tarCode(tar[shortFilename] || shortFilename
, function (content) {
contents += content;
}
, function () {
handleEmbed(null, contents);
}
);
}
} else {
fs.readFile(ROOT_DIR + filename, "utf8", handleEmbed);

View file

@ -48,4 +48,18 @@
, "broadcast_revisions.js"
, "timeslider.js"
]
, "ace2_inner.js": [
"ace2_common.js"
, "skiplist.js"
, "virtual_lines.js"
, "easysync2.js"
, "cssmanager.js"
, "colorutils.js"
, "undomodule.js"
, "contentcollector.js"
, "changesettracker.js"
, "linestylefilter.js"
, "domline.js"
, "ace2_inner.js"
]
}