mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
fix
This commit is contained in:
parent
da1bf00a78
commit
382804e44c
1 changed files with 2 additions and 2 deletions
|
@ -179,9 +179,9 @@ AttributeManager.prototype = _(AttributeManager.prototype).extend({
|
||||||
var list = _.chain(attribs).filter(function(a){return !!a[1];}).map(function(a){return a[0];}).value();
|
var list = _.chain(attribs).filter(function(a){return !!a[1];}).map(function(a){return a[0];}).value();
|
||||||
//if we have marker and any of attributes don't need to have marker. we need delete it
|
//if we have marker and any of attributes don't need to have marker. we need delete it
|
||||||
if(hasMarker && !_.intersection(lineAttributes,list)){
|
if(hasMarker && !_.intersection(lineAttributes,list)){
|
||||||
ChangesetUtils.buildRemoveRange(this.rep, builder, [lineNum, 0], [lineNum, 1]);
|
ChangesetUtils.buildRemoveRange(this.rep, builder, [lineNum, 1], [lineNum, 2]);
|
||||||
}else{
|
}else{
|
||||||
ChangesetUtils.buildKeepRange(this.rep, builder, [lineNum, 0], [lineNum, 1], attribs, this.rep.apool);
|
ChangesetUtils.buildKeepRange(this.rep, builder, [lineNum, 1], [lineNum, 2], attribs, this.rep.apool);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.applyChangeset(builder);
|
return this.applyChangeset(builder);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue