From 16f6e4bd30ce25b3d6a2ba1cea81bd27134471f1 Mon Sep 17 00:00:00 2001 From: gschwab Date: Mon, 7 Oct 2013 10:23:40 +0200 Subject: [PATCH] multiple options allowed --- js/server/modules/org/arangodb/foxx/repository.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/server/modules/org/arangodb/foxx/repository.js b/js/server/modules/org/arangodb/foxx/repository.js index 451c7ad3d6..88593766e5 100644 --- a/js/server/modules/org/arangodb/foxx/repository.js +++ b/js/server/modules/org/arangodb/foxx/repository.js @@ -69,7 +69,7 @@ var Repository, Repository = function (collection, opts) { 'use strict'; - var options = opts || {}; + this.options = opts || {}; //////////////////////////////////////////////////////////////////////////////// /// @fn JSF_foxx_repository_collection @@ -87,7 +87,7 @@ Repository = function (collection, opts) { /// See the documentation of collection. //////////////////////////////////////////////////////////////////////////////// - this.modelPrototype = options.model || require("org/arangodb/foxx/model").Model; + this.modelPrototype = this.options.model || require("org/arangodb/foxx/model").Model; //////////////////////////////////////////////////////////////////////////////// /// @fn JSF_foxx_repository_prefix @@ -96,7 +96,7 @@ Repository = function (collection, opts) { /// See the documentation of collection. //////////////////////////////////////////////////////////////////////////////// - this.prefix = options.prefix; + this.prefix = this.options.prefix; }; _.extend(Repository.prototype, {