Permalink
Browse files

fixed the setAt index

  • Loading branch information...
substack committed Aug 9, 2011
1 parent 550ed7e commit dc258c8094231bd2be8f79e2b0218383f6cb48bc
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.js
  2. +1 −1 package.json
View
@@ -195,7 +195,7 @@ var Scrubber = exports.Scrubber = function () {
function setAt (ref, path, value) {
var node = ref;
- for (var i = 0; i < path.length - 2; i++) {
+ for (var i = 0; i < path.length - 1; i++) {
var key = path[i];
if (Object.propertyIsEnumerable.call(node, key)) {
node = node[key];
View
@@ -1,7 +1,7 @@
{
"name": "dnode-protocol",
"description": "Implements the dnode protocol abstractly",
- "version": "0.0.11",
+ "version": "0.0.12",
"repository": "https://github.com/substack/dnode-protocol.git",
"author": {
"name" : "James Halliday",

0 comments on commit dc258c8

Please sign in to comment.