post merge fixes to straighten paths and fix mini_require

This commit is contained in:
Joe Walker 2011-03-17 13:07:27 +00:00
Родитель a6aa2ec6ee
Коммит 667b11e013
3 изменённых файлов: 19 добавлений и 19 удалений

Просмотреть файл

@ -58,7 +58,7 @@ catalog.registerPlugins([ "pilot/index" ]);
var Dom = require("pilot/dom"); var Dom = require("pilot/dom");
var Event = require("pilot/event"); var Event = require("pilot/event");
var UA = require("pilot/useragent") var UA = require("pilot/useragent");
var Editor = require("ace/editor").Editor; var Editor = require("ace/editor").Editor;
var EditSession = require("ace/edit_session").EditSession; var EditSession = require("ace/edit_session").EditSession;
@ -88,7 +88,7 @@ window.__ace_shadowed__.edit = function(el) {
el.env = env; el.env = env;
}); });
return editor; return editor;
} };
/** /**
@ -203,7 +203,7 @@ function setupContainer(element, getValue) {
if (oldSumit) { if (oldSumit) {
oldSumit.call(this, evt); oldSumit.call(this, evt);
} }
} };
break; break;
} }
parentNode = parentNode.parentNode; parentNode = parentNode.parentNode;
@ -284,13 +284,13 @@ window.__ace_shadowed__.transformTextarea = function(element) {
editorDiv.appendChild(settingOpener); editorDiv.appendChild(settingOpener);
// Create the API. // Create the API.
var api = setupApi(editor, editorDiv, settingDiv, ace, options) var api = setupApi(editor, editorDiv, settingDiv, ace, options);
// Create the setting's panel. // Create the setting's panel.
setupSettingPanel(settingDiv, settingOpener, api, options); setupSettingPanel(settingDiv, settingOpener, api, options);
return api; return api;
} };
function setupApi(editor, editorDiv, settingDiv, ace, options) { function setupApi(editor, editorDiv, settingDiv, ace, options) {
var session = editor.getSession(); var session = editor.getSession();
@ -372,7 +372,7 @@ function setupApi(editor, editorDiv, settingDiv, ace, options) {
case "showPrintMargin": case "showPrintMargin":
renderer.setShowPrintMargin(toBool(value)); renderer.setShowPrintMargin(toBool(value));
break break;
} }
options[key] = value; options[key] = value;
@ -385,7 +385,7 @@ function setupApi(editor, editorDiv, settingDiv, ace, options) {
getOptions: function() { getOptions: function() {
return options; return options;
} }
} };
for (option in ace.options) { for (option in ace.options) {
ret.setOption(option, ace.options[option]); ret.setOption(option, ace.options[option]);
@ -398,7 +398,7 @@ function setupSettingPanel(settingDiv, settingOpener, api, options) {
var BOOL = { var BOOL = {
"true": true, "true": true,
"false": false "false": false
} };
var desc = { var desc = {
mode: "Mode:", mode: "Mode:",
@ -408,7 +408,7 @@ function setupSettingPanel(settingDiv, settingOpener, api, options) {
softWrap: "Soft Wrap:", softWrap: "Soft Wrap:",
showPrintMargin: "Show Print Margin:", showPrintMargin: "Show Print Margin:",
useSoftTabs: "Use Soft Tabs:" useSoftTabs: "Use Soft Tabs:"
} };
var optionValues = { var optionValues = {
mode: { mode: {
@ -453,13 +453,13 @@ function setupSettingPanel(settingDiv, settingOpener, api, options) {
}, },
showPrintMargin: BOOL, showPrintMargin: BOOL,
useSoftTabs: BOOL useSoftTabs: BOOL
} };
var table = []; var table = [];
table.push("<table><tr><th>Setting</th><th>Value</th></tr>"); table.push("<table><tr><th>Setting</th><th>Value</th></tr>");
function renderOption(builder, option, obj, cValue) { function renderOption(builder, option, obj, cValue) {
builder.push("<select title='" + option + "'>") builder.push("<select title='" + option + "'>");
for (var value in obj) { for (var value in obj) {
builder.push("<option value='" + value + "' "); builder.push("<option value='" + value + "' ");
@ -471,7 +471,7 @@ function setupSettingPanel(settingDiv, settingOpener, api, options) {
obj[value], obj[value],
"</option>"); "</option>");
} }
builder.push("</select>") builder.push("</select>");
} }
for (var option in options) { for (var option in options) {
@ -491,7 +491,7 @@ function setupSettingPanel(settingDiv, settingOpener, api, options) {
var option = select.title; var option = select.title;
var value = select.value; var value = select.value;
api.setOption(option, value); api.setOption(option, value);
} };
})(); })();
selects[i].onchange = onChange; selects[i].onchange = onChange;
} }
@ -501,12 +501,12 @@ function setupSettingPanel(settingDiv, settingOpener, api, options) {
button.value = "Hide"; button.value = "Hide";
button.onclick = function() { button.onclick = function() {
api.setDisplaySettings(false); api.setDisplaySettings(false);
} };
settingDiv.appendChild(button); settingDiv.appendChild(button);
settingOpener.onclick = function() { settingOpener.onclick = function() {
api.setDisplaySettings(true); api.setDisplaySettings(true);
} };
} }
// Default startup options. // Default startup options.
@ -518,8 +518,8 @@ window.__ace_shadowed__.options = {
softWrap: "off", softWrap: "off",
showPrintMargin: "false", showPrintMargin: "false",
useSoftTabs: "true" useSoftTabs: "true"
} };
}); });
})() })();

Просмотреть файл

@ -92,7 +92,7 @@ var _require = function(module, callback) {
return payload; return payload;
}; };
} };
_require.packaged = true; _require.packaged = true;
_require.noWorker = true; _require.noWorker = true;

Просмотреть файл

@ -40,7 +40,7 @@ require({
demo: "../demo", demo: "../demo",
ace: "../lib/ace", ace: "../lib/ace",
cockpit: "../support/cockpit/lib/cockpit", cockpit: "../support/cockpit/lib/cockpit",
pilot: "../support/pilot/lib/pilot" pilot: "../support/cockpit/support/pilot/lib/pilot"
} }
}); });