summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e483334)
(cherry picked from commit
6b06b64)
node: ret,
offset: ret.getText().length - len
};
node: ret,
offset: ret.getText().length - len
};
toret = {
node: ret.getFirstTextNode(),
offset: 0
toret = {
node: ret.getFirstTextNode(),
offset: 0
return toMerge.is({tagName: 'div', 'klass': 'p'}) || (toMerge.is({tagName: 'div'}) && toMerge.getClass() === '');
},
run: function() {
return toMerge.is({tagName: 'div', 'klass': 'p'}) || (toMerge.is({tagName: 'div'}) && toMerge.getClass() === '');
},
run: function() {
- if(prev && (prev.is('p') || prev.is({tagName: 'header'}))) {
+ if (!prev)
+ return;
+ if(prev.is('p') || prev.is({tagName: 'header'})) {
return merge(toMerge, prev);
}
return merge(toMerge, prev);
}
- if(prev && prev.is('list')) {
var items = prev.contents().filter(function(n) { return n.is('item');});
return merge(toMerge, items[items.length-1]);
}
var items = prev.contents().filter(function(n) { return n.is('item');});
return merge(toMerge, items[items.length-1]);
}
return toMerge.is({tagName: 'header'});
},
run: function() {
return toMerge.is({tagName: 'header'});
},
run: function() {
- if(prev && prev.is('p') || prev.is({tagName: 'header'})) {
+ if(prev && (prev.is('p') || prev.is({tagName: 'header'}))) {
return merge(toMerge, prev);
}
}
return merge(toMerge, prev);
}
}