Skip to content

Commit

Permalink
locutusjs#344 fixing issue with delete keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-andreyev committed Aug 22, 2017
1 parent db25b54 commit ecb770d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/php/array/array_multisort.js
Expand Up @@ -182,8 +182,8 @@ module.exports = function array_multisort (arr) { // eslint-disable-line camelca
args[i][vkey] = sortArrs[i][j]
}
}
delete sortArrs[i]
delete sortKeys[i]
sortArrs.splice(i, 1)
sortKeys.splice(i, 1)
continue
}

Expand Down Expand Up @@ -294,8 +294,8 @@ module.exports = function array_multisort (arr) { // eslint-disable-line camelca
args[i][vkey] = sortArrs[i][j]
}
}
delete sortArrs[i]
delete sortKeys[i]
sortArrs.splice(i, 1)
sortKeys.splice(i, 1)
}
}
return true
Expand Down

0 comments on commit ecb770d

Please sign in to comment.