0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Merge branch 'master' of git@github.com:mongodb/mongo

This commit is contained in:
Dwight 2009-12-21 14:45:26 -05:00
commit 4f16eebd29

View File

@ -273,7 +273,13 @@ Array.stdDev = function( arr ){
}
Object.keySet = function( o ) {
return [i for (i in o) if ( !( i in o.__proto__ && o[ i ] === o.__proto__[ i ] ) )];
var ret = new Array();
for( i in o ) {
if ( !( i in o.__proto__ && o[ i ] === o.__proto__[ i ] ) ) {
ret.push( i );
}
}
return ret;
}
if ( ! ObjectId.prototype )