diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-03 03:00:48 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-03 03:00:48 -0400 |
| commit | b20d8dd5140833fb46fab29e02e06d35943ce40c (patch) | |
| tree | 657410332d217e3a28956bde0a03e721c63932bb /app/node_modules/okresource/index.js | |
| parent | b8ae0749a6e7f85edda8a0926e003cd561e4d172 (diff) | |
Use "type" semantic for resource types
Diffstat (limited to 'app/node_modules/okresource/index.js')
| -rw-r--r-- | app/node_modules/okresource/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/node_modules/okresource/index.js b/app/node_modules/okresource/index.js index 58b94c2..b7dd4b6 100644 --- a/app/node_modules/okresource/index.js +++ b/app/node_modules/okresource/index.js @@ -28,9 +28,12 @@ function createResourceClass(options) { if (!options.db) throw new Error('No DB provided to OKResource'); options = options || {}; - this.name = name; this._db = options.db; this._schema = schema; + Object.defineProperty(this, 'type', { + value: type, + writable: false + }); } /** |
