diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-06 14:26:07 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-06 15:27:53 -0400 |
| commit | 7297a035b734b545364a2508977ba9078e1e72c5 (patch) | |
| tree | a673b5e2658af91797efecaa87e91e6e8c4f83b6 /app/node_modules/okquery/index.js | |
| parent | 394b89b2be765d02b4544198d13cf442f2a2b5c7 (diff) | |
Expose resources backing OKQuery
Diffstat (limited to 'app/node_modules/okquery/index.js')
| -rw-r--r-- | app/node_modules/okquery/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/node_modules/okquery/index.js b/app/node_modules/okquery/index.js index 6f8d7b5..e5bae67 100644 --- a/app/node_modules/okquery/index.js +++ b/app/node_modules/okquery/index.js @@ -12,6 +12,10 @@ function OKQuery(options) { var resource = options.resource; var type = resource.type; var query = options.query || '*'; + Object.defineProperty(this, 'resource', { + value: resource, + writable: false + }); Object.defineProperty(this, 'type', { value: resource.type, writable: false |
