Browse Source

spelling: paths

pull/4067/head
Josh Soref 8 years ago
parent
commit
22b1180c98
1 changed files with 3 additions and 3 deletions
  1. 6
      test/helpers/sinon.js

6
test/helpers/sinon.js

@ -179,7 +179,7 @@ define.amd = true;
// contain already visited objects // contain already visited objects
var objects1 = [], var objects1 = [],
objects2 = [], objects2 = [],
// contain pathes (position in the object structure)
// contain paths (position in the object structure)
// of the already visited objects // of the already visited objects
// indexes same as in objects arrays // indexes same as in objects arrays
paths1 = [], paths1 = [],
@ -294,7 +294,7 @@ define.amd = true;
index1 = isObject1 ? getIndex(objects1, value1) : -1; index1 = isObject1 ? getIndex(objects1, value1) : -1;
index2 = isObject2 ? getIndex(objects2, value2) : -1; index2 = isObject2 ? getIndex(objects2, value2) : -1;
// determine the new pathes of the objects
// determine the new paths of the objects
// - for non cyclic objects the current path will be extended // - for non cyclic objects the current path will be extended
// by current property name // by current property name
// - for cyclic objects the stored path is taken // - for cyclic objects the stored path is taken
@ -310,7 +310,7 @@ define.amd = true;
return true; return true;
} }
// remember the current objects and their pathes
// remember the current objects and their paths
if (index1 === -1 && isObject1) { if (index1 === -1 && isObject1) {
objects1.push(value1); objects1.push(value1);
paths1.push(newPath1); paths1.push(newPath1);

Loading…
Cancel
Save