1
0
Fork 0

Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel

This commit is contained in:
Michael Hackstein 2013-11-12 14:01:19 +01:00
commit ae7fdd5277
2 changed files with 6 additions and 22 deletions

View File

@ -407,18 +407,10 @@ ArangoDatabase.prototype._truncate = function (id) {
////////////////////////////////////////////////////////////////////////////////
ArangoDatabase.prototype._drop = function (id) {
var name;
var collection = this._collection(id);
for (name in this) {
if (this.hasOwnProperty(name)) {
var collection = this[name];
if (collection instanceof this._collectionConstructor) {
if (collection._id === id || collection._name === id) {
return collection.drop();
}
}
}
if (collection instanceof this._collectionConstructor) {
return collection.drop();
}
return undefined;

View File

@ -406,18 +406,10 @@ ArangoDatabase.prototype._truncate = function (id) {
////////////////////////////////////////////////////////////////////////////////
ArangoDatabase.prototype._drop = function (id) {
var name;
var collection = this._collection(id);
for (name in this) {
if (this.hasOwnProperty(name)) {
var collection = this[name];
if (collection instanceof this._collectionConstructor) {
if (collection._id === id || collection._name === id) {
return collection.drop();
}
}
}
if (collection instanceof this._collectionConstructor) {
return collection.drop();
}
return undefined;