Spark no-op fix: If we're going to annotate list items with a typed range, we

should be consistent and do that for non-initial items as well. (Nothing ever
looks for this type currently, though.)
This commit is contained in:
David Glasser
2012-09-12 16:58:28 -07:00
parent a43c8b1d6a
commit 9cbd1fc888

View File

@@ -909,7 +909,7 @@ Spark.list = function (cursor, itemFunc, elseFunc) {
later(function () {
var frag = Spark.render(_.bind(itemFunc, null, item));
DomUtils.wrapFragmentForContainer(frag, outerRange.containerNode());
var range = new LiveRange(Spark._TAG, frag);
var range = makeRange(Spark._ANNOTATION_LIST_ITEM, frag);
if (! itemRanges.length) {
Spark.finalize(outerRange.replaceContents(frag));