Skip to content

Commit

Permalink
refactor: remove unused options param in install
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jan 1, 2018
1 parent 5edd93a commit 2e4d61f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function bind ({ vm, key, ref }, options = { maxRefDepth: 2 }) {
})
}

function install (Vue, options) {
function install (Vue) {
const strategies = Vue.config.optionMergeStrategies
strategies.firestore = strategies.provide

Expand All @@ -264,12 +264,12 @@ function install (Vue, options) {
const { firestore } = this.$options
this._firestoreUnbinds = Object.create(null)
this.$firestoreRefs = Object.create(null)
const options = typeof firestore === 'function'
const refs = typeof firestore === 'function'
? firestore.call(this)
: firestore
if (!options) return
Object.keys(options).forEach(key => {
this.$bind(key, options[key])
if (!refs) return
Object.keys(refs).forEach(key => {
this.$bind(key, refs[key])
})
},

Expand Down

0 comments on commit 2e4d61f

Please sign in to comment.