update packaged ace

This commit is contained in:
Fabian Jakobs 2011-05-30 11:38:23 +02:00
commit 2d45f9d5b5
4 changed files with 19 additions and 3 deletions

View file

@ -3417,6 +3417,22 @@ exports.copyArray = function(array){
return copy;
};
exports.deepCopy = function (obj) {
if (typeof obj[key] != "object") {
return obj;
}
var copy = obj.constructor();
for (var key in obj) {
if (typeof obj[key] == "object") {
copy[key] = this.deepCopy(obj[key]);
} else {
copy[key] = obj[key];
}
}
return copy;
}
exports.arrayToMap = function(arr) {
var map = {};
for (var i=0; i<arr.length; i++) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long