Skip to content

Commit

Permalink
s/Object_keys/objectKeys/g
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 16, 2012
1 parent 1c2bae3 commit ef3694f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Traverse.prototype.clone = function () {
parents.push(src);
nodes.push(dst);

forEach(Object_keys(src), function (key) {
forEach(objectKeys(src), function (key) {
dst[key] = clone(src[key]);
});

Expand Down Expand Up @@ -161,7 +161,7 @@ function walk (root, cb, immutable) {
if (!alive) return state;

if (typeof node === 'object' && node !== null) {
state.keys = Object_keys(node);
state.keys = objectKeys(node);

state.isLeaf = state.keys.length == 0;

Expand Down Expand Up @@ -259,15 +259,15 @@ function copy (src) {
dst = new T;
}

forEach(Object_keys(src), function (key) {
forEach(objectKeys(src), function (key) {
dst[key] = src[key];
});
return dst;
}
else return src;
}

var Object_keys = Object.keys || function keys (obj) {
var objectKeys = Object.keys || function keys (obj) {
var res = [];
for (var key in obj) res.push(key)
return res;
Expand All @@ -292,7 +292,7 @@ var forEach = function (xs, fn) {
}
};

forEach(Object_keys(Traverse.prototype), function (key) {
forEach(objectKeys(Traverse.prototype), function (key) {
traverse[key] = function (obj) {
var args = [].slice.call(arguments, 1);
var t = new Traverse(obj);
Expand Down

0 comments on commit ef3694f

Please sign in to comment.