Merge pull request #2926 from storytouch/addAuthorOnRemoveAttributeOnLine

Update author when removing line attribute from line
pull/2935/merge
John McLear 2016-03-26 22:11:22 +08:00
commit 8df8228a36
1 changed files with 3 additions and 0 deletions

View File

@ -278,6 +278,9 @@ AttributeManager.prototype = _(AttributeManager.prototype).extend({
if (attrib[0] === attributeName && (!attributeValue || attrib[0] === attributeValue)){
found = true;
return [attributeName, ''];
}else if (attrib[0] === 'author'){
// update last author to make changes to line attributes on this line
return [attributeName, this.author];
}
return attrib;
});