diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-03 14:28:53 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-06 15:27:53 -0400 |
| commit | 03fef46a1e34015cc9fed4baf54fa04285f8798b (patch) | |
| tree | 487e187475fdab29e5f8bc1adbed5b2bf2c842e0 /app/node_modules/okquery/index.js | |
| parent | 4a112b88f4f39dfe5ba8df77f12ed5b565665010 (diff) | |
Step towards cleaner resource resolution for views
Diffstat (limited to 'app/node_modules/okquery/index.js')
| -rw-r--r-- | app/node_modules/okquery/index.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/node_modules/okquery/index.js b/app/node_modules/okquery/index.js index cfc8d0b..d36feae 100644 --- a/app/node_modules/okquery/index.js +++ b/app/node_modules/okquery/index.js @@ -30,9 +30,8 @@ function createQuery(resource, query) { } function queryDynamic(resource) { - return function(options) { - options = options || {}; - return resource.get(options.id); + return function(id) { + return resource.get(id); } } |
