Skip to content

Commit

Permalink
fix for brokenness in IE with using the wrong variable name for the p…
Browse files Browse the repository at this point in the history
…rototype checking
  • Loading branch information
James Halliday committed Aug 23, 2011
1 parent 96d9e25 commit 4cb7bcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ function copy (src) {
else if (Object.create && Object.getPrototypeOf) {
dst = Object.create(Object.getPrototypeOf(src));
}
else if (obj.__proto__ || obj.constructor.prototype) {
var proto = obj.__proto__ || obj.constructor.prototype || {};
else if (src.__proto__ || src.constructor.prototype) {
var proto = src.__proto__ || src.constructor.prototype || {};
var T = function () {};
T.prototype = proto;
dst = new T;
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.5.0",
"version" : "0.5.1",
"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 4cb7bcb

Please sign in to comment.