Merge branch 'dump'
Conflicts: src/debug/ChromeDebugMessageStream.js src/debug/NodeSocket.js src/debug/StandaloneV8DebuggerService.js src/debug/V8DebuggerService.js src/debug/WSV8DebuggerService.js
This commit is contained in:
parent
797f9680e9
commit
02f8ea5af5
12 changed files with 52 additions and 32 deletions
|
|
@ -88,8 +88,8 @@ var Editor = function(renderer, doc) {
|
||||||
this.doc.removeEventListener("changeBreakpoint", this.$onDocumentChangeBreakpoint);
|
this.doc.removeEventListener("changeBreakpoint", this.$onDocumentChangeBreakpoint);
|
||||||
|
|
||||||
var selection = this.doc.getSelection();
|
var selection = this.doc.getSelection();
|
||||||
this.selection.removeEventListener("changeCursor", this.$onCursorChange);
|
selection.removeEventListener("changeCursor", this.$onCursorChange);
|
||||||
this.selection.removeEventListener("changeSelection", this.$onSelectionChange);
|
selection.removeEventListener("changeSelection", this.$onSelectionChange);
|
||||||
|
|
||||||
this.doc.setScrollTopRow(this.renderer.getScrollTopRow());
|
this.doc.setScrollTopRow(this.renderer.getScrollTopRow());
|
||||||
}
|
}
|
||||||
|
|
@ -861,7 +861,6 @@ var Editor = function(renderer, doc) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
options.needle = needle;
|
options.needle = needle;
|
||||||
this.$search.set(options);
|
this.$search.set(options);
|
||||||
console.log("options: ", JSON.stringify(this.$search.$options));
|
|
||||||
this.$find();
|
this.$find();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ var KeyBinding = function(element, editor, config) {
|
||||||
"39" : "Right",
|
"39" : "Right",
|
||||||
"40" : "Down",
|
"40" : "Down",
|
||||||
"45" : "Insert",
|
"45" : "Insert",
|
||||||
"46" : "Del",
|
"46" : "Delete",
|
||||||
"107": "+",
|
"107": "+",
|
||||||
"112": "F1",
|
"112": "F1",
|
||||||
"113": "F2",
|
"113": "F2",
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,10 @@
|
||||||
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
||||||
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
||||||
*/
|
*/
|
||||||
require.def("ace/MEventEmitter", ["ace/ace"], function(ace) {
|
|
||||||
|
if (!require.def) require.def = require("requireJS-node")(module);
|
||||||
|
|
||||||
|
require.def("ace/MEventEmitter", ["ace/lib/lang"], function(lang) {
|
||||||
|
|
||||||
var MEventEmitter = {}
|
var MEventEmitter = {}
|
||||||
|
|
||||||
|
|
@ -30,7 +33,7 @@ require.def("ace/MEventEmitter", ["ace/ace"], function(ace) {
|
||||||
if (!listeners) {
|
if (!listeners) {
|
||||||
var listeners = this.$eventRegistry[eventName] = [];
|
var listeners = this.$eventRegistry[eventName] = [];
|
||||||
}
|
}
|
||||||
if (ace.arrayIndexOf(listeners, callback) == -1) {
|
if (lang.arrayIndexOf(listeners, callback) == -1) {
|
||||||
listeners.push(callback);
|
listeners.push(callback);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -42,7 +45,7 @@ require.def("ace/MEventEmitter", ["ace/ace"], function(ace) {
|
||||||
if (!listeners) {
|
if (!listeners) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var index = ace.arrayIndexOf(listeners, callback);
|
var index = lang.arrayIndexOf(listeners, callback);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
listeners.splice(index, 1);
|
listeners.splice(index, 1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -204,25 +204,27 @@ var VirtualRenderer = function(container) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.draw = function(scrollOnly, callback) {
|
this.draw = function(scrollOnly, callback) {
|
||||||
if (this.$drawTimer) {
|
this.$draw(scrollOnly);
|
||||||
clearInterval(this.$drawTimer);
|
callback && callback();
|
||||||
this.scrollOnly = this.scrollOnly && scrollOnly;
|
// if (this.$drawTimer) {
|
||||||
} else {
|
// clearInterval(this.$drawTimer);
|
||||||
this.scollOnly = scrollOnly;
|
// this.scrollOnly = this.scrollOnly && scrollOnly;
|
||||||
}
|
// } else {
|
||||||
|
// this.scollOnly = scrollOnly;
|
||||||
if (callback)
|
// }
|
||||||
this.$drawCallbacks.push(callback);
|
//
|
||||||
|
// if (callback)
|
||||||
var _self = this;
|
// this.$drawCallbacks.push(callback);
|
||||||
this.$drawTimer = setTimeout(function() {
|
//
|
||||||
_self.$draw(_self.scrollOnly);
|
// var _self = this;
|
||||||
for (var i=0; i<_self.$drawCallbacks.length; i++)
|
// this.$drawTimer = setTimeout(function() {
|
||||||
_self.$drawCallbacks[i]();
|
// _self.$draw(_self.scrollOnly);
|
||||||
|
// for (var i=0; i<_self.$drawCallbacks.length; i++)
|
||||||
_self.$drawCallbacks = [];
|
// _self.$drawCallbacks[i]();
|
||||||
delete _self.$drawTimer;
|
//
|
||||||
}, 0);
|
// _self.$drawCallbacks = [];
|
||||||
|
// delete _self.$drawTimer;
|
||||||
|
// }, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$draw = function(scrollOnly) {
|
this.$draw = function(scrollOnly) {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
||||||
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!require.def) require.def = require("requireJS-node")(module);
|
||||||
|
|
||||||
require.def("ace/ace", [
|
require.def("ace/ace", [
|
||||||
"ace/lib/core",
|
"ace/lib/core",
|
||||||
"ace/lib/dom",
|
"ace/lib/dom",
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,7 @@ return {
|
||||||
"findprevious": "Meta-Shift-K",
|
"findprevious": "Meta-Shift-K",
|
||||||
"find": "Meta-F",
|
"find": "Meta-F",
|
||||||
"undo": "Meta-Z",
|
"undo": "Meta-Z",
|
||||||
"redo": "Meta-Shift=Z",
|
"redo": "Meta-Shift-Z|Meta-Y",
|
||||||
"redo": "Meta-Y",
|
|
||||||
"overwrite": "Insert",
|
"overwrite": "Insert",
|
||||||
"copylinesup": "Meta-Alt-Up",
|
"copylinesup": "Meta-Alt-Up",
|
||||||
"movelinesup": "Alt-Up",
|
"movelinesup": "Alt-Up",
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,7 @@ return {
|
||||||
"findprevious": "Control-Shift-K",
|
"findprevious": "Control-Shift-K",
|
||||||
"find": "Control-F",
|
"find": "Control-F",
|
||||||
"undo": "Control-Z",
|
"undo": "Control-Z",
|
||||||
"redo": "Control-Shift=Z",
|
"redo": "Control-Shift-Z|Control-Y",
|
||||||
"redo": "Control-Y",
|
|
||||||
"overwrite": "Insert",
|
"overwrite": "Insert",
|
||||||
"copylinesup": "Control-Alt-Up",
|
"copylinesup": "Control-Alt-Up",
|
||||||
"movelinesup": "Alt-Up",
|
"movelinesup": "Alt-Up",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
||||||
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!require.def) require.def = require("requireJS-node")(module);
|
||||||
|
|
||||||
require.def("ace/lib/core", function() {
|
require.def("ace/lib/core", function() {
|
||||||
|
|
||||||
var core = {};
|
var core = {};
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
||||||
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!require.def) require.def = require("requireJS-node")(module);
|
||||||
|
|
||||||
require.def("ace/lib/dom", ["ace/lib/lang"], function(lang) {
|
require.def("ace/lib/dom", ["ace/lib/lang"], function(lang) {
|
||||||
|
|
||||||
var dom = {};
|
var dom = {};
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
||||||
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!require.def) require.def = require("requireJS-node")(module);
|
||||||
|
|
||||||
require.def("ace/lib/event", ["ace/lib/core"], function(core) {
|
require.def("ace/lib/event", ["ace/lib/core"], function(core) {
|
||||||
|
|
||||||
var event = {};
|
var event = {};
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
||||||
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!require.def) require.def = require("requireJS-node")(module);
|
||||||
|
|
||||||
require.def("ace/lib/lang", function() {
|
require.def("ace/lib/lang", function() {
|
||||||
|
|
||||||
var lang = {};
|
var lang = {};
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
* @license LGPLv3 <http://www.gnu.org/licenses/lgpl-3.0.txt>
|
||||||
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
* @author Fabian Jakobs <fabian AT ajax DOT org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!require.def) require.def = require("requireJS-node")(module);
|
||||||
|
|
||||||
require.def("ace/lib/oop", function() {
|
require.def("ace/lib/oop", function() {
|
||||||
|
|
||||||
var oop = {};
|
var oop = {};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue