diff --git a/LICENSE b/ace/LICENSE similarity index 100% rename from LICENSE rename to ace/LICENSE diff --git a/demo/editor.html b/ace/demo/editor.html similarity index 100% rename from demo/editor.html rename to ace/demo/editor.html diff --git a/demo/logo.png b/ace/demo/logo.png similarity index 100% rename from demo/logo.png rename to ace/demo/logo.png diff --git a/demo/require.js b/ace/demo/require.js similarity index 100% rename from demo/require.js rename to ace/demo/require.js diff --git a/doc/Editor.mm b/ace/doc/Editor.mm similarity index 96% rename from doc/Editor.mm rename to ace/doc/Editor.mm index 9f5902c8..57208079 100644 --- a/doc/Editor.mm +++ b/ace/doc/Editor.mm @@ -32,9 +32,8 @@ - + - diff --git a/package.json b/ace/package.json similarity index 100% rename from package.json rename to ace/package.json diff --git a/src/ace/BackgroundTokenizer.js b/ace/src/ace/BackgroundTokenizer.js similarity index 100% rename from src/ace/BackgroundTokenizer.js rename to ace/src/ace/BackgroundTokenizer.js diff --git a/src/ace/Document.js b/ace/src/ace/Document.js similarity index 100% rename from src/ace/Document.js rename to ace/src/ace/Document.js diff --git a/src/ace/Editor.js b/ace/src/ace/Editor.js similarity index 100% rename from src/ace/Editor.js rename to ace/src/ace/Editor.js diff --git a/src/ace/KeyBinding.js b/ace/src/ace/KeyBinding.js similarity index 100% rename from src/ace/KeyBinding.js rename to ace/src/ace/KeyBinding.js diff --git a/src/ace/MEventEmitter.js b/ace/src/ace/MEventEmitter.js similarity index 100% rename from src/ace/MEventEmitter.js rename to ace/src/ace/MEventEmitter.js diff --git a/src/ace/PluginManager.js b/ace/src/ace/PluginManager.js similarity index 100% rename from src/ace/PluginManager.js rename to ace/src/ace/PluginManager.js diff --git a/src/ace/Range.js b/ace/src/ace/Range.js similarity index 100% rename from src/ace/Range.js rename to ace/src/ace/Range.js diff --git a/src/ace/RenderLoop.js b/ace/src/ace/RenderLoop.js similarity index 100% rename from src/ace/RenderLoop.js rename to ace/src/ace/RenderLoop.js diff --git a/src/ace/ScrollBar.js b/ace/src/ace/ScrollBar.js similarity index 100% rename from src/ace/ScrollBar.js rename to ace/src/ace/ScrollBar.js diff --git a/src/ace/Search.js b/ace/src/ace/Search.js similarity index 100% rename from src/ace/Search.js rename to ace/src/ace/Search.js diff --git a/src/ace/Selection.js b/ace/src/ace/Selection.js similarity index 100% rename from src/ace/Selection.js rename to ace/src/ace/Selection.js diff --git a/src/ace/TextInput.js b/ace/src/ace/TextInput.js similarity index 100% rename from src/ace/TextInput.js rename to ace/src/ace/TextInput.js diff --git a/src/ace/Tokenizer.js b/ace/src/ace/Tokenizer.js similarity index 100% rename from src/ace/Tokenizer.js rename to ace/src/ace/Tokenizer.js diff --git a/src/ace/UndoManager.js b/ace/src/ace/UndoManager.js similarity index 100% rename from src/ace/UndoManager.js rename to ace/src/ace/UndoManager.js diff --git a/src/ace/VirtualRenderer.js b/ace/src/ace/VirtualRenderer.js similarity index 100% rename from src/ace/VirtualRenderer.js rename to ace/src/ace/VirtualRenderer.js diff --git a/src/ace/commands/DefaultCommands.js b/ace/src/ace/commands/DefaultCommands.js similarity index 100% rename from src/ace/commands/DefaultCommands.js rename to ace/src/ace/commands/DefaultCommands.js diff --git a/src/ace/conf/keybindings/default_mac.js b/ace/src/ace/conf/keybindings/default_mac.js similarity index 100% rename from src/ace/conf/keybindings/default_mac.js rename to ace/src/ace/conf/keybindings/default_mac.js diff --git a/src/ace/conf/keybindings/default_win.js b/ace/src/ace/conf/keybindings/default_win.js similarity index 100% rename from src/ace/conf/keybindings/default_win.js rename to ace/src/ace/conf/keybindings/default_win.js diff --git a/src/ace/css/editor.css b/ace/src/ace/css/editor.css similarity index 100% rename from src/ace/css/editor.css rename to ace/src/ace/css/editor.css diff --git a/src/ace/layer/Cursor.js b/ace/src/ace/layer/Cursor.js similarity index 100% rename from src/ace/layer/Cursor.js rename to ace/src/ace/layer/Cursor.js diff --git a/src/ace/layer/Gutter.js b/ace/src/ace/layer/Gutter.js similarity index 100% rename from src/ace/layer/Gutter.js rename to ace/src/ace/layer/Gutter.js diff --git a/src/ace/layer/Marker.js b/ace/src/ace/layer/Marker.js similarity index 100% rename from src/ace/layer/Marker.js rename to ace/src/ace/layer/Marker.js diff --git a/src/ace/layer/Text.js b/ace/src/ace/layer/Text.js similarity index 100% rename from src/ace/layer/Text.js rename to ace/src/ace/layer/Text.js diff --git a/src/ace/lib/core.js b/ace/src/ace/lib/core.js similarity index 100% rename from src/ace/lib/core.js rename to ace/src/ace/lib/core.js diff --git a/src/ace/lib/dom.js b/ace/src/ace/lib/dom.js similarity index 100% rename from src/ace/lib/dom.js rename to ace/src/ace/lib/dom.js diff --git a/src/ace/lib/event.js b/ace/src/ace/lib/event.js similarity index 100% rename from src/ace/lib/event.js rename to ace/src/ace/lib/event.js diff --git a/src/ace/lib/lang.js b/ace/src/ace/lib/lang.js similarity index 100% rename from src/ace/lib/lang.js rename to ace/src/ace/lib/lang.js diff --git a/src/ace/lib/oop.js b/ace/src/ace/lib/oop.js similarity index 100% rename from src/ace/lib/oop.js rename to ace/src/ace/lib/oop.js diff --git a/src/ace/mode/Css.js b/ace/src/ace/mode/Css.js similarity index 100% rename from src/ace/mode/Css.js rename to ace/src/ace/mode/Css.js diff --git a/src/ace/mode/CssHighlightRules.js b/ace/src/ace/mode/CssHighlightRules.js similarity index 100% rename from src/ace/mode/CssHighlightRules.js rename to ace/src/ace/mode/CssHighlightRules.js diff --git a/src/ace/mode/DocCommentHighlightRules.js b/ace/src/ace/mode/DocCommentHighlightRules.js similarity index 100% rename from src/ace/mode/DocCommentHighlightRules.js rename to ace/src/ace/mode/DocCommentHighlightRules.js diff --git a/src/ace/mode/Html.js b/ace/src/ace/mode/Html.js similarity index 100% rename from src/ace/mode/Html.js rename to ace/src/ace/mode/Html.js diff --git a/src/ace/mode/HtmlHighlightRules.js b/ace/src/ace/mode/HtmlHighlightRules.js similarity index 100% rename from src/ace/mode/HtmlHighlightRules.js rename to ace/src/ace/mode/HtmlHighlightRules.js diff --git a/src/ace/mode/JavaScript.js b/ace/src/ace/mode/JavaScript.js similarity index 100% rename from src/ace/mode/JavaScript.js rename to ace/src/ace/mode/JavaScript.js diff --git a/src/ace/mode/JavaScriptHighlightRules.js b/ace/src/ace/mode/JavaScriptHighlightRules.js similarity index 100% rename from src/ace/mode/JavaScriptHighlightRules.js rename to ace/src/ace/mode/JavaScriptHighlightRules.js diff --git a/src/ace/mode/MatchingBraceOutdent.js b/ace/src/ace/mode/MatchingBraceOutdent.js similarity index 100% rename from src/ace/mode/MatchingBraceOutdent.js rename to ace/src/ace/mode/MatchingBraceOutdent.js diff --git a/src/ace/mode/Text.js b/ace/src/ace/mode/Text.js similarity index 100% rename from src/ace/mode/Text.js rename to ace/src/ace/mode/Text.js diff --git a/src/ace/mode/TextHighlightRules.js b/ace/src/ace/mode/TextHighlightRules.js similarity index 100% rename from src/ace/mode/TextHighlightRules.js rename to ace/src/ace/mode/TextHighlightRules.js diff --git a/src/ace/mode/Xml.js b/ace/src/ace/mode/Xml.js similarity index 100% rename from src/ace/mode/Xml.js rename to ace/src/ace/mode/Xml.js diff --git a/src/ace/mode/XmlHighlightRules.js b/ace/src/ace/mode/XmlHighlightRules.js similarity index 100% rename from src/ace/mode/XmlHighlightRules.js rename to ace/src/ace/mode/XmlHighlightRules.js diff --git a/src/ace/test/ChangeDocumentTest.js b/ace/src/ace/test/ChangeDocumentTest.js similarity index 100% rename from src/ace/test/ChangeDocumentTest.js rename to ace/src/ace/test/ChangeDocumentTest.js diff --git a/src/ace/test/DocumentTest.js b/ace/src/ace/test/DocumentTest.js similarity index 100% rename from src/ace/test/DocumentTest.js rename to ace/src/ace/test/DocumentTest.js diff --git a/src/ace/test/EventEmitterTest.js b/ace/src/ace/test/EventEmitterTest.js similarity index 100% rename from src/ace/test/EventEmitterTest.js rename to ace/src/ace/test/EventEmitterTest.js diff --git a/src/ace/test/MockRenderer.js b/ace/src/ace/test/MockRenderer.js similarity index 100% rename from src/ace/test/MockRenderer.js rename to ace/src/ace/test/MockRenderer.js diff --git a/src/ace/test/NavigationTest.js b/ace/src/ace/test/NavigationTest.js similarity index 100% rename from src/ace/test/NavigationTest.js rename to ace/src/ace/test/NavigationTest.js diff --git a/src/ace/test/RangeTest.js b/ace/src/ace/test/RangeTest.js similarity index 100% rename from src/ace/test/RangeTest.js rename to ace/src/ace/test/RangeTest.js diff --git a/src/ace/test/SearchTest.js b/ace/src/ace/test/SearchTest.js similarity index 100% rename from src/ace/test/SearchTest.js rename to ace/src/ace/test/SearchTest.js diff --git a/src/ace/test/SelectionTest.js b/ace/src/ace/test/SelectionTest.js similarity index 100% rename from src/ace/test/SelectionTest.js rename to ace/src/ace/test/SelectionTest.js diff --git a/src/ace/test/TextEditTest.js b/ace/src/ace/test/TextEditTest.js similarity index 100% rename from src/ace/test/TextEditTest.js rename to ace/src/ace/test/TextEditTest.js diff --git a/src/ace/test/VirtualRendererTest.js b/ace/src/ace/test/VirtualRendererTest.js similarity index 100% rename from src/ace/test/VirtualRendererTest.js rename to ace/src/ace/test/VirtualRendererTest.js diff --git a/src/ace/test/all.js b/ace/src/ace/test/all.js similarity index 100% rename from src/ace/test/all.js rename to ace/src/ace/test/all.js diff --git a/src/ace/test/assertions.js b/ace/src/ace/test/assertions.js similarity index 100% rename from src/ace/test/assertions.js rename to ace/src/ace/test/assertions.js diff --git a/src/ace/test/mode/CssTest.js b/ace/src/ace/test/mode/CssTest.js similarity index 100% rename from src/ace/test/mode/CssTest.js rename to ace/src/ace/test/mode/CssTest.js diff --git a/src/ace/test/mode/CssTokenizerTest.js b/ace/src/ace/test/mode/CssTokenizerTest.js similarity index 100% rename from src/ace/test/mode/CssTokenizerTest.js rename to ace/src/ace/test/mode/CssTokenizerTest.js diff --git a/src/ace/test/mode/HtmlTest.js b/ace/src/ace/test/mode/HtmlTest.js similarity index 100% rename from src/ace/test/mode/HtmlTest.js rename to ace/src/ace/test/mode/HtmlTest.js diff --git a/src/ace/test/mode/HtmlTokenizerTest.js b/ace/src/ace/test/mode/HtmlTokenizerTest.js similarity index 100% rename from src/ace/test/mode/HtmlTokenizerTest.js rename to ace/src/ace/test/mode/HtmlTokenizerTest.js diff --git a/src/ace/test/mode/JavaScriptTest.js b/ace/src/ace/test/mode/JavaScriptTest.js similarity index 100% rename from src/ace/test/mode/JavaScriptTest.js rename to ace/src/ace/test/mode/JavaScriptTest.js diff --git a/src/ace/test/mode/JavaScriptTokenizerTest.js b/ace/src/ace/test/mode/JavaScriptTokenizerTest.js similarity index 100% rename from src/ace/test/mode/JavaScriptTokenizerTest.js rename to ace/src/ace/test/mode/JavaScriptTokenizerTest.js diff --git a/src/ace/test/mode/TextTest.js b/ace/src/ace/test/mode/TextTest.js similarity index 100% rename from src/ace/test/mode/TextTest.js rename to ace/src/ace/test/mode/TextTest.js diff --git a/src/ace/test/mode/XmlTest.js b/ace/src/ace/test/mode/XmlTest.js similarity index 100% rename from src/ace/test/mode/XmlTest.js rename to ace/src/ace/test/mode/XmlTest.js diff --git a/src/ace/test/mode/XmlTokenizerTest.js b/ace/src/ace/test/mode/XmlTokenizerTest.js similarity index 100% rename from src/ace/test/mode/XmlTokenizerTest.js rename to ace/src/ace/test/mode/XmlTokenizerTest.js diff --git a/src/ace/theme/Clouds.js b/ace/src/ace/theme/Clouds.js similarity index 100% rename from src/ace/theme/Clouds.js rename to ace/src/ace/theme/Clouds.js diff --git a/src/ace/theme/CloudsMidnight.js b/ace/src/ace/theme/CloudsMidnight.js similarity index 100% rename from src/ace/theme/CloudsMidnight.js rename to ace/src/ace/theme/CloudsMidnight.js diff --git a/src/ace/theme/Cobalt.js b/ace/src/ace/theme/Cobalt.js similarity index 100% rename from src/ace/theme/Cobalt.js rename to ace/src/ace/theme/Cobalt.js diff --git a/src/ace/theme/Dawn.js b/ace/src/ace/theme/Dawn.js similarity index 100% rename from src/ace/theme/Dawn.js rename to ace/src/ace/theme/Dawn.js diff --git a/src/ace/theme/Eclipse.js b/ace/src/ace/theme/Eclipse.js similarity index 100% rename from src/ace/theme/Eclipse.js rename to ace/src/ace/theme/Eclipse.js diff --git a/src/ace/theme/IdleFingers.js b/ace/src/ace/theme/IdleFingers.js similarity index 100% rename from src/ace/theme/IdleFingers.js rename to ace/src/ace/theme/IdleFingers.js diff --git a/src/ace/theme/KrTheme.js b/ace/src/ace/theme/KrTheme.js similarity index 100% rename from src/ace/theme/KrTheme.js rename to ace/src/ace/theme/KrTheme.js diff --git a/src/ace/theme/MonoIndustrial.js b/ace/src/ace/theme/MonoIndustrial.js similarity index 100% rename from src/ace/theme/MonoIndustrial.js rename to ace/src/ace/theme/MonoIndustrial.js diff --git a/src/ace/theme/Monokai.js b/ace/src/ace/theme/Monokai.js similarity index 100% rename from src/ace/theme/Monokai.js rename to ace/src/ace/theme/Monokai.js diff --git a/src/ace/theme/TextMate.js b/ace/src/ace/theme/TextMate.js similarity index 100% rename from src/ace/theme/TextMate.js rename to ace/src/ace/theme/TextMate.js diff --git a/src/ace/theme/Twilight.js b/ace/src/ace/theme/Twilight.js similarity index 100% rename from src/ace/theme/Twilight.js rename to ace/src/ace/theme/Twilight.js diff --git a/src/ace/theme/eclipse.css b/ace/src/ace/theme/eclipse.css similarity index 100% rename from src/ace/theme/eclipse.css rename to ace/src/ace/theme/eclipse.css diff --git a/src/ace/theme/tm.css b/ace/src/ace/theme/tm.css similarity index 100% rename from src/ace/theme/tm.css rename to ace/src/ace/theme/tm.css diff --git a/tool/Theme.tmpl.css b/ace/tool/Theme.tmpl.css similarity index 100% rename from tool/Theme.tmpl.css rename to ace/tool/Theme.tmpl.css diff --git a/tool/theme.tmpl.js b/ace/tool/theme.tmpl.js similarity index 100% rename from tool/theme.tmpl.js rename to ace/tool/theme.tmpl.js diff --git a/tool/tmtheme.js b/ace/tool/tmtheme.js similarity index 100% rename from tool/tmtheme.js rename to ace/tool/tmtheme.js diff --git a/tool/tmthemes/Dawn.tmTheme b/ace/tool/tmthemes/Dawn.tmTheme similarity index 100% rename from tool/tmthemes/Dawn.tmTheme rename to ace/tool/tmthemes/Dawn.tmTheme diff --git a/tool/tmthemes/Twilight.tmTheme b/ace/tool/tmthemes/Twilight.tmTheme similarity index 100% rename from tool/tmthemes/Twilight.tmTheme rename to ace/tool/tmthemes/Twilight.tmTheme diff --git a/tool/tmthemes/idleFingers.tmTheme b/ace/tool/tmthemes/idleFingers.tmTheme similarity index 100% rename from tool/tmthemes/idleFingers.tmTheme rename to ace/tool/tmthemes/idleFingers.tmTheme diff --git a/experiments/capture.html b/experiments/capture.html deleted file mode 100644 index 9df5e3cd..00000000 --- a/experiments/capture.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - -
- -
- - - - - diff --git a/experiments/chrome_debugger.html b/experiments/chrome_debugger.html deleted file mode 100644 index 727140a1..00000000 --- a/experiments/chrome_debugger.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments/cut_copy.html b/experiments/cut_copy.html deleted file mode 100644 index 3299f3ad..00000000 --- a/experiments/cut_copy.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - Text Events - - - - - - - -
- -
-
- - -
- -
- - - - - diff --git a/experiments/json2.js b/experiments/json2.js deleted file mode 100644 index c52b92aa..00000000 --- a/experiments/json2.js +++ /dev/null @@ -1,482 +0,0 @@ -/* - http://www.JSON.org/json2.js - 2010-03-20 - - Public Domain. - - NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. - - See http://www.JSON.org/js.html - - - This code should be minified before deployment. - See http://javascript.crockford.com/jsmin.html - - USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO - NOT CONTROL. - - - This file creates a global JSON object containing two methods: stringify - and parse. - - JSON.stringify(value, replacer, space) - value any JavaScript value, usually an object or array. - - replacer an optional parameter that determines how object - values are stringified for objects. It can be a - function or an array of strings. - - space an optional parameter that specifies the indentation - of nested structures. If it is omitted, the text will - be packed without extra whitespace. If it is a number, - it will specify the number of spaces to indent at each - level. If it is a string (such as '\t' or ' '), - it contains the characters used to indent at each level. - - This method produces a JSON text from a JavaScript value. - - When an object value is found, if the object contains a toJSON - method, its toJSON method will be called and the result will be - stringified. A toJSON method does not serialize: it returns the - value represented by the name/value pair that should be serialized, - or undefined if nothing should be serialized. The toJSON method - will be passed the key associated with the value, and this will be - bound to the value - - For example, this would serialize Dates as ISO strings. - - Date.prototype.toJSON = function (key) { - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; - } - - return this.getUTCFullYear() + '-' + - f(this.getUTCMonth() + 1) + '-' + - f(this.getUTCDate()) + 'T' + - f(this.getUTCHours()) + ':' + - f(this.getUTCMinutes()) + ':' + - f(this.getUTCSeconds()) + 'Z'; - }; - - You can provide an optional replacer method. It will be passed the - key and value of each member, with this bound to the containing - object. The value that is returned from your method will be - serialized. If your method returns undefined, then the member will - be excluded from the serialization. - - If the replacer parameter is an array of strings, then it will be - used to select the members to be serialized. It filters the results - such that only members with keys listed in the replacer array are - stringified. - - Values that do not have JSON representations, such as undefined or - functions, will not be serialized. Such values in objects will be - dropped; in arrays they will be replaced with null. You can use - a replacer function to replace those with JSON values. - JSON.stringify(undefined) returns undefined. - - The optional space parameter produces a stringification of the - value that is filled with line breaks and indentation to make it - easier to read. - - If the space parameter is a non-empty string, then that string will - be used for indentation. If the space parameter is a number, then - the indentation will be that many spaces. - - Example: - - text = JSON.stringify(['e', {pluribus: 'unum'}]); - // text is '["e",{"pluribus":"unum"}]' - - - text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); - // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' - - text = JSON.stringify([new Date()], function (key, value) { - return this[key] instanceof Date ? - 'Date(' + this[key] + ')' : value; - }); - // text is '["Date(---current time---)"]' - - - JSON.parse(text, reviver) - This method parses a JSON text to produce an object or array. - It can throw a SyntaxError exception. - - The optional reviver parameter is a function that can filter and - transform the results. It receives each of the keys and values, - and its return value is used instead of the original value. - If it returns what it received, then the structure is not modified. - If it returns undefined then the member is deleted. - - Example: - - // Parse the text. Values that look like ISO date strings will - // be converted to Date objects. - - myData = JSON.parse(text, function (key, value) { - var a; - if (typeof value === 'string') { - a = -/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); - if (a) { - return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], - +a[5], +a[6])); - } - } - return value; - }); - - myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { - var d; - if (typeof value === 'string' && - value.slice(0, 5) === 'Date(' && - value.slice(-1) === ')') { - d = new Date(value.slice(5, -1)); - if (d) { - return d; - } - } - return value; - }); - - - This is a reference implementation. You are free to copy, modify, or - redistribute. -*/ - -/*jslint evil: true, strict: false */ - -/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, - call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, - getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, - lastIndex, length, parse, prototype, push, replace, slice, stringify, - test, toJSON, toString, valueOf -*/ - - -// Create a JSON object only if one does not already exist. We create the -// methods in a closure to avoid creating global variables. - -if (!this.JSON) { - this.JSON = {}; -} - -(function () { - - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; - } - - if (typeof Date.prototype.toJSON !== 'function') { - - Date.prototype.toJSON = function (key) { - - return isFinite(this.valueOf()) ? - this.getUTCFullYear() + '-' + - f(this.getUTCMonth() + 1) + '-' + - f(this.getUTCDate()) + 'T' + - f(this.getUTCHours()) + ':' + - f(this.getUTCMinutes()) + ':' + - f(this.getUTCSeconds()) + 'Z' : null; - }; - - String.prototype.toJSON = - Number.prototype.toJSON = - Boolean.prototype.toJSON = function (key) { - return this.valueOf(); - }; - } - - var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, - escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, - gap, - indent, - meta = { // table of character substitutions - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '"' : '\\"', - '\\': '\\\\' - }, - rep; - - - function quote(string) { - -// If the string contains no control characters, no quote characters, and no -// backslash characters, then we can safely slap some quotes around it. -// Otherwise we must also replace the offending characters with safe escape -// sequences. - - escapable.lastIndex = 0; - return escapable.test(string) ? - '"' + string.replace(escapable, function (a) { - var c = meta[a]; - return typeof c === 'string' ? c : - '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); - }) + '"' : - '"' + string + '"'; - } - - - function str(key, holder) { - -// Produce a string from holder[key]. - - var i, // The loop counter. - k, // The member key. - v, // The member value. - length, - mind = gap, - partial, - value = holder[key]; - -// If the value has a toJSON method, call it to obtain a replacement value. - - if (value && typeof value === 'object' && - typeof value.toJSON === 'function') { - value = value.toJSON(key); - } - -// If we were called with a replacer function, then call the replacer to -// obtain a replacement value. - - if (typeof rep === 'function') { - value = rep.call(holder, key, value); - } - -// What happens next depends on the value's type. - - switch (typeof value) { - case 'string': - return quote(value); - - case 'number': - -// JSON numbers must be finite. Encode non-finite numbers as null. - - return isFinite(value) ? String(value) : 'null'; - - case 'boolean': - case 'null': - -// If the value is a boolean or null, convert it to a string. Note: -// typeof null does not produce 'null'. The case is included here in -// the remote chance that this gets fixed someday. - - return String(value); - -// If the type is 'object', we might be dealing with an object or an array or -// null. - - case 'object': - -// Due to a specification blunder in ECMAScript, typeof null is 'object', -// so watch out for that case. - - if (!value) { - return 'null'; - } - -// Make an array to hold the partial results of stringifying this object value. - - gap += indent; - partial = []; - -// Is the value an array? - - if (Object.prototype.toString.apply(value) === '[object Array]') { - -// The value is an array. Stringify every element. Use null as a placeholder -// for non-JSON values. - - length = value.length; - for (i = 0; i < length; i += 1) { - partial[i] = str(i, value) || 'null'; - } - -// Join all of the elements together, separated with commas, and wrap them in -// brackets. - - v = partial.length === 0 ? '[]' : - gap ? '[\n' + gap + - partial.join(',\n' + gap) + '\n' + - mind + ']' : - '[' + partial.join(',') + ']'; - gap = mind; - return v; - } - -// If the replacer is an array, use it to select the members to be stringified. - - if (rep && typeof rep === 'object') { - length = rep.length; - for (i = 0; i < length; i += 1) { - k = rep[i]; - if (typeof k === 'string') { - v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - } - } - } else { - -// Otherwise, iterate through all of the keys in the object. - - for (k in value) { - if (Object.hasOwnProperty.call(value, k)) { - v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - } - } - } - -// Join all of the member texts together, separated with commas, -// and wrap them in braces. - - v = partial.length === 0 ? '{}' : - gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + - mind + '}' : '{' + partial.join(',') + '}'; - gap = mind; - return v; - } - } - -// If the JSON object does not yet have a stringify method, give it one. - - if (typeof JSON.stringify !== 'function') { - JSON.stringify = function (value, replacer, space) { - -// The stringify method takes a value and an optional replacer, and an optional -// space parameter, and returns a JSON text. The replacer can be a function -// that can replace values, or an array of strings that will select the keys. -// A default replacer method can be provided. Use of the space parameter can -// produce text that is more easily readable. - - var i; - gap = ''; - indent = ''; - -// If the space parameter is a number, make an indent string containing that -// many spaces. - - if (typeof space === 'number') { - for (i = 0; i < space; i += 1) { - indent += ' '; - } - -// If the space parameter is a string, it will be used as the indent string. - - } else if (typeof space === 'string') { - indent = space; - } - -// If there is a replacer, it must be a function or an array. -// Otherwise, throw an error. - - rep = replacer; - if (replacer && typeof replacer !== 'function' && - (typeof replacer !== 'object' || - typeof replacer.length !== 'number')) { - throw new Error('JSON.stringify'); - } - -// Make a fake root object containing our value under the key of ''. -// Return the result of stringifying the value. - - return str('', {'': value}); - }; - } - - -// If the JSON object does not yet have a parse method, give it one. - - if (typeof JSON.parse !== 'function') { - JSON.parse = function (text, reviver) { - -// The parse method takes a text and an optional reviver function, and returns -// a JavaScript value if the text is a valid JSON text. - - var j; - - function walk(holder, key) { - -// The walk method is used to recursively walk the resulting structure so -// that modifications can be made. - - var k, v, value = holder[key]; - if (value && typeof value === 'object') { - for (k in value) { - if (Object.hasOwnProperty.call(value, k)) { - v = walk(value, k); - if (v !== undefined) { - value[k] = v; - } else { - delete value[k]; - } - } - } - } - return reviver.call(holder, key, value); - } - - -// Parsing happens in four stages. In the first stage, we replace certain -// Unicode characters with escape sequences. JavaScript handles many characters -// incorrectly, either silently deleting them, or treating them as line endings. - - text = String(text); - cx.lastIndex = 0; - if (cx.test(text)) { - text = text.replace(cx, function (a) { - return '\\u' + - ('0000' + a.charCodeAt(0).toString(16)).slice(-4); - }); - } - -// In the second stage, we run the text against regular expressions that look -// for non-JSON patterns. We are especially concerned with '()' and 'new' -// because they can cause invocation, and '=' because it can cause mutation. -// But just to be safe, we want to reject all unexpected forms. - -// We split the second stage into 4 regexp operations in order to work around -// crippling inefficiencies in IE's and Safari's regexp engines. First we -// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we -// replace all simple value tokens with ']' characters. Third, we delete all -// open brackets that follow a colon or comma or that begin the text. Finally, -// we look to see that the remaining characters are only whitespace or ']' or -// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval. - - if (/^[\],:{}\s]*$/. -test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@'). -replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']'). -replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { - -// In the third stage we use the eval function to compile the text into a -// JavaScript structure. The '{' operator is subject to a syntactic ambiguity -// in JavaScript: it can begin a block or an object literal. We wrap the text -// in parens to eliminate the ambiguity. - - j = eval('(' + text + ')'); - -// In the optional fourth stage, we recursively walk the new structure, passing -// each name/value pair to a reviver function for possible transformation. - - return typeof reviver === 'function' ? - walk({'': j}, '') : j; - } - -// If the text is not JSON parseable, then a SyntaxError is thrown. - - throw new SyntaxError('JSON.parse'); - }; - } -}()); \ No newline at end of file diff --git a/experiments/key_event_logger.html b/experiments/key_event_logger.html deleted file mode 100644 index 0b27d407..00000000 --- a/experiments/key_event_logger.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - Text Events - - - - - - - -
- -
-
- - -
- -
- - - - - diff --git a/experiments/socket.html b/experiments/socket.html deleted file mode 100644 index 725d4b20..00000000 --- a/experiments/socket.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - -
- - - - diff --git a/experiments/tokenizer.html b/experiments/tokenizer.html deleted file mode 100644 index 29f97055..00000000 --- a/experiments/tokenizer.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - BackgroundTokenizer - - - - - - - - - - - - - - - diff --git a/experiments/triple_click.html b/experiments/triple_click.html deleted file mode 100644 index da953a94..00000000 --- a/experiments/triple_click.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - triple_click - - - - - -
- Juhu Kinners -
- - - - - - - diff --git a/experiments/v8_debugger.html b/experiments/v8_debugger.html deleted file mode 100644 index 90d7b9d6..00000000 --- a/experiments/v8_debugger.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/experiments/worker.html b/experiments/worker.html deleted file mode 100644 index f3c75bde..00000000 --- a/experiments/worker.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - worker - - - - - - - - - - diff --git a/experiments/worker.js b/experiments/worker.js deleted file mode 100644 index 1335f55e..00000000 --- a/experiments/worker.js +++ /dev/null @@ -1,3 +0,0 @@ -onmessage = function(e) { - onmessage = new Function("e", e.data); -}; \ No newline at end of file diff --git a/tool/support/async b/tool/support/async deleted file mode 160000 index 1ca039ca..00000000 --- a/tool/support/async +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1ca039caaf8fef048a0bf11835ca48cf56984bcb diff --git a/tool/support/node-o3-xml b/tool/support/node-o3-xml deleted file mode 160000 index 14181cd1..00000000 --- a/tool/support/node-o3-xml +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 14181cd1fc52378a79dd230b7086b3e60d6e1003