Skip to content

Commit 2e4d61f

Browse files
committed
refactor: remove unused options param in install
1 parent 5edd93a commit 2e4d61f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function bind ({ vm, key, ref }, options = { maxRefDepth: 2 }) {
255255
})
256256
}
257257

258-
function install (Vue, options) {
258+
function install (Vue) {
259259
const strategies = Vue.config.optionMergeStrategies
260260
strategies.firestore = strategies.provide
261261

@@ -264,12 +264,12 @@ function install (Vue, options) {
264264
const { firestore } = this.$options
265265
this._firestoreUnbinds = Object.create(null)
266266
this.$firestoreRefs = Object.create(null)
267-
const options = typeof firestore === 'function'
267+
const refs = typeof firestore === 'function'
268268
? firestore.call(this)
269269
: firestore
270-
if (!options) return
271-
Object.keys(options).forEach(key => {
272-
this.$bind(key, options[key])
270+
if (!refs) return
271+
Object.keys(refs).forEach(key => {
272+
this.$bind(key, refs[key])
273273
})
274274
},
275275

0 commit comments

Comments
 (0)