set several breakpoints at once
This commit is contained in:
parent
38bc918e81
commit
6c78c7f50b
1 changed files with 15 additions and 2 deletions
|
|
@ -114,14 +114,27 @@ ace.Document = function(text, mode) {
|
||||||
return this.$breakpoints;
|
return this.$breakpoints;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.setBreakpoints = function(rows) {
|
||||||
|
this.$breakpoints = [];
|
||||||
|
for (var i=0; i<rows; i++) {
|
||||||
|
this.$breakpoints[rows[i]] = true;
|
||||||
|
}
|
||||||
|
this.$dispatchEvent("changeBreakpoint", {});
|
||||||
|
};
|
||||||
|
|
||||||
|
this.clearBreakpoints = function() {
|
||||||
|
this.$breakpoints = [];
|
||||||
|
this.$dispatchEvent("changeBreakpoint", {});
|
||||||
|
};
|
||||||
|
|
||||||
this.setBreakpoint = function(row) {
|
this.setBreakpoint = function(row) {
|
||||||
this.$breakpoints[row] = true;
|
this.$breakpoints[row] = true;
|
||||||
this.$dispatchEvent("changeBreakpoint", {data: row});
|
this.$dispatchEvent("changeBreakpoint", {});
|
||||||
};
|
};
|
||||||
|
|
||||||
this.clearBreakpoint = function(row) {
|
this.clearBreakpoint = function(row) {
|
||||||
delete this.$breakpoints[row];
|
delete this.$breakpoints[row];
|
||||||
this.$dispatchEvent("changeBreakpoint", {data: row});
|
this.$dispatchEvent("changeBreakpoint", {});
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$detectNewLine = function(text) {
|
this.$detectNewLine = function(text) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue