do not break old breakpoint api
This commit is contained in:
parent
9c1101c814
commit
97e40eb580
1 changed files with 5 additions and 2 deletions
|
|
@ -533,8 +533,11 @@ var EditSession = function(text, mode) {
|
|||
* Sets a breakpoint on every row number given by `rows`. This function also emites the `'changeBreakpoint'` event.
|
||||
*
|
||||
**/
|
||||
this.setBreakpoints = function(breakpoints) {
|
||||
this.$breakpoints = breakpoints;
|
||||
this.setBreakpoints = function(rows) {
|
||||
this.$breakpoints = [];
|
||||
for (var i=0; i<rows.length; i++) {
|
||||
this.$breakpoints[rows[i]] = "ace_breakpoint";
|
||||
}
|
||||
this._emit("changeBreakpoint", {});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue