Make use of post.blockquote.

This commit is contained in:
Nicolas Stepien 2012-05-27 17:31:46 +02:00
parent 81b6d97c59
commit 860921e47e
2 changed files with 4 additions and 4 deletions

View File

@ -648,7 +648,7 @@
comment: function(post) {
var data, i, nodes, text, _i, _ref;
text = [];
nodes = d.evaluate('.//br|.//text()', post.el.lastElementChild, null, 7, null);
nodes = d.evaluate('.//br|.//text()', post.blockquote, null, 7, null);
for (i = _i = 0, _ref = nodes.snapshotLength; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
text.push((data = nodes.snapshotItem(i).data) ? data : '\n');
}
@ -3346,7 +3346,7 @@
if (post.isInlined && !post.isCrosspost) {
return;
}
snapshot = d.evaluate('.//text()[not(parent::a)]', post.el.lastElementChild, null, 6, null);
snapshot = d.evaluate('.//text()[not(parent::a)]', post.blockquote, null, 6, null);
for (i = _i = 0, _ref = snapshot.snapshotLength; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
node = snapshot.snapshotItem(i);
data = node.data;

View File

@ -512,7 +512,7 @@ Filter =
comment: (post) ->
text = []
# XPathResult.ORDERED_NODE_SNAPSHOT_TYPE is 7
nodes = d.evaluate './/br|.//text()', post.el.lastElementChild, null, 7, null
nodes = d.evaluate './/br|.//text()', post.blockquote, null, 7, null
for i in [0...nodes.snapshotLength]
text.push if data = nodes.snapshotItem(i).data then data else '\n'
text.join ''
@ -2530,7 +2530,7 @@ Quotify =
# XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE is 6
# Get all the text nodes that are not inside an anchor.
snapshot = d.evaluate './/text()[not(parent::a)]', post.el.lastElementChild, null, 6, null
snapshot = d.evaluate './/text()[not(parent::a)]', post.blockquote, null, 6, null
for i in [0...snapshot.snapshotLength]
node = snapshot.snapshotItem i