1
0
Fork 0

fixed jslint warning

This commit is contained in:
Jan Steemann 2014-06-20 09:53:01 +02:00
parent 72b785568b
commit 218d23d761
1 changed files with 4 additions and 3 deletions

View File

@ -160,7 +160,8 @@ extend(Controller.prototype, {
'use strict';
var newRoute = internal.constructRoute(method, route, callback, this),
requestContext = new RequestContext(this.allRoutes, this.models, newRoute, this.rootElement),
summary;
summary,
undocumentedBody;
this.routingInfo.routes.push(newRoute);
@ -175,8 +176,8 @@ extend(Controller.prototype, {
this.applicationContext.clearComments();
if (method === 'post' || method === 'put' || method === 'patch') {
var UndocumentedBody = require('org/arangodb/foxx').Model.extend();
requestContext.bodyParam("undocumented body", "Undocumented body param", UndocumentedBody);
undocumentedBody = require('org/arangodb/foxx').Model.extend();
requestContext.bodyParam("undocumented body", "Undocumented body param", undocumentedBody);
}
return requestContext;