mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Spell "indices"
This commit is contained in:
@@ -140,7 +140,7 @@ Blaze.Each = function (argFunc, contentFunc, elseFunc) {
|
||||
eachView.variableName = null;
|
||||
|
||||
// update the @index value in the scope of all subviews in the range
|
||||
var updateIndicies = function (from, to) {
|
||||
var updateIndices = function (from, to) {
|
||||
if (to === undefined) {
|
||||
to = eachView.numItems - 1;
|
||||
}
|
||||
@@ -201,7 +201,7 @@ Blaze.Each = function (argFunc, contentFunc, elseFunc) {
|
||||
|
||||
var range = Blaze._materializeView(newItemView, eachView);
|
||||
eachView._domrange.addMember(range, index);
|
||||
updateIndicies(index);
|
||||
updateIndices(index);
|
||||
} else {
|
||||
eachView.initialSubviews.splice(index, 0, newItemView);
|
||||
}
|
||||
@@ -214,7 +214,7 @@ Blaze.Each = function (argFunc, contentFunc, elseFunc) {
|
||||
eachView.expandedValueDep.changed();
|
||||
} else if (eachView._domrange) {
|
||||
eachView._domrange.removeMember(index);
|
||||
updateIndicies(index);
|
||||
updateIndices(index);
|
||||
if (eachView.elseFunc && eachView.numItems === 0) {
|
||||
eachView.inElseMode = true;
|
||||
eachView._domrange.addMember(
|
||||
@@ -252,7 +252,7 @@ Blaze.Each = function (argFunc, contentFunc, elseFunc) {
|
||||
eachView.expandedValueDep.changed();
|
||||
} else if (eachView._domrange) {
|
||||
eachView._domrange.moveMember(fromIndex, toIndex);
|
||||
updateIndicies(
|
||||
updateIndices(
|
||||
Math.min(fromIndex, toIndex), Math.max(fromIndex, toIndex));
|
||||
} else {
|
||||
var subviews = eachView.initialSubviews;
|
||||
|
||||
Reference in New Issue
Block a user