mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
This commit is contained in:
commit
d3ebb6bae2
|
@ -25,7 +25,7 @@ var queryView = Backbone.View.extend({
|
|||
editor2.setHighlightActiveLine(false);
|
||||
|
||||
editor.getSession().setMode("ace/mode/javascript");
|
||||
editor2.getSession().setMode("ace/mode/javascript");
|
||||
editor2.getSession().setMode("ace/mode/json");
|
||||
editor.setTheme("ace/theme/merbivore_soft");
|
||||
editor.resize();
|
||||
editor2.setValue('');
|
||||
|
|
|
@ -34,7 +34,7 @@ function CreateFoxxApplicationSpec () {
|
|||
|
||||
assertEqual(routingInfo.routes.length, 0);
|
||||
assertNotNull(templateCollection);
|
||||
assertEqual(routingInfo.templateCollection, templateCollection);
|
||||
assertEqual(app.templateCollection, templateCollection);
|
||||
},
|
||||
|
||||
testCreationWithTemplateCollectionIfCollectionDoesExist: function () {
|
||||
|
@ -48,7 +48,7 @@ function CreateFoxxApplicationSpec () {
|
|||
|
||||
assertEqual(routingInfo.routes.length, 0);
|
||||
assertNotNull(templateCollection);
|
||||
assertEqual(routingInfo.templateCollection, templateCollection);
|
||||
assertEqual(app.templateCollection, templateCollection);
|
||||
},
|
||||
|
||||
testAdditionOfBaseMiddlewareInRoutingInfo: function () {
|
||||
|
|
|
@ -107,7 +107,7 @@ FoxxApplication = function (options) {
|
|||
this.routingInfo.urlPrefix = urlPrefix;
|
||||
|
||||
if (_.isString(templateCollection)) {
|
||||
this.routingInfo.templateCollection = db._collection(templateCollection) ||
|
||||
this.templateCollection = db._collection(templateCollection) ||
|
||||
db._create(templateCollection);
|
||||
myMiddleware = new BaseMiddleware(templateCollection, this.helperCollection);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue