From bdb36f4f2e6bdc6ef0a7aa0507198263aea7d754 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Fri, 13 Feb 2015 15:23:47 -0800 Subject: [PATCH] Spell "indices" --- packages/blaze/builtins.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/blaze/builtins.js b/packages/blaze/builtins.js index 2e1b58e54e..17c9fff513 100644 --- a/packages/blaze/builtins.js +++ b/packages/blaze/builtins.js @@ -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;