Skip to content

Commit

Permalink
quote the delete keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Apr 17, 2011
1 parent e4cea30 commit 42d0460
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function walk (root, cb) {
}
state.node = x;
},
delete : function () {
'delete' : function () {
delete state.parent.node[state.key];
},
remove : function () {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "traverse",
"version" : "0.3.3",
"version" : "0.3.4",
"description" : "Traverse and transform objects by visiting every node on a recursive walk",
"author" : "James Halliday",
"license" : "MIT/X11",
Expand Down

0 comments on commit 42d0460

Please sign in to comment.