do not break old breakpoint api

This commit is contained in:
nightwing 2012-08-08 19:54:18 +04:00
commit 97e40eb580

View file

@ -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", {});
};