Skip to content

Commit 626aef6

Browse files
author
Anis Kadri
committed
Merge branch 'peutetre-fix-iojs'
2 parents 808cae2 + 7fd3a3d commit 626aef6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/pbxProject.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,9 @@ pbxProject.prototype.hasFile = function (filePath) {
678678

679679
// helper recursive prop search+replace
680680
function propReplace(obj, prop, value) {
681+
var o = {};
681682
for (var p in obj) {
682-
if (obj.hasOwnProperty(p)) {
683+
if (o.hasOwnProperty.call(obj, p)) {
683684
if (typeof obj[p] == 'object') {
684685
propReplace(obj[p], prop, value);
685686
} else if (p == prop) {

0 commit comments

Comments
 (0)