1
0
Fork 0

added derived file

This commit is contained in:
Jan Steemann 2015-08-05 11:53:22 +02:00
parent 0a04083442
commit bdf1cb0cdb
1 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ exports.ArangoQueryCursor = ArangoQueryCursor;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
ArangoQueryCursor.prototype.toString = function () { ArangoQueryCursor.prototype.toString = function () {
var isCaptureModeActive = internal.isCaptureMode() var isCaptureModeActive = internal.isCaptureMode();
var rows = [ ], i = 0; var rows = [ ], i = 0;
while (++i <= 10 && this.hasNext()) { while (++i <= 10 && this.hasNext()) {
rows.push(this.next()); rows.push(this.next());
@ -100,7 +100,7 @@ ArangoQueryCursor.prototype.toString = function () {
result += "]"; result += "]";
if (!isCaptureModeActive) { if (!isCaptureModeActive) {
print(result); internal.print(result);
result = ""; result = "";
} }
if (rows.length > 0) { if (rows.length > 0) {
@ -120,7 +120,7 @@ ArangoQueryCursor.prototype.toString = function () {
} }
if (!isCaptureModeActive) { if (!isCaptureModeActive) {
print(result); internal.print(result);
result = ""; result = "";
} }
return result; return result;