summaryrefslogtreecommitdiff
path: root/graffiti.js
diff options
context:
space:
mode:
Diffstat (limited to 'graffiti.js')
-rw-r--r--graffiti.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/graffiti.js b/graffiti.js
index 8875f8d..ad456b1 100644
--- a/graffiti.js
+++ b/graffiti.js
@@ -1,5 +1,5 @@
import Auth from './src/auth.js'
-//import Collection from './src/collection.js'
+import GraffitiArray from './src/array.js'
export default class {
@@ -240,8 +240,8 @@ export default class {
const combinedMaps = Object.assign({},
...tags.map(tag=> this.tagMap[tag].objectMap))
- // Return just the array
- return Object.values(combinedMaps)
+ // Return an array wrapped with graffiti functions
+ return new GraffitiArray(this, ...Object.values(combinedMaps))
}
async subscribe(...tags) {