Skip to content

Commit 5f52e88

Browse files
committed
Enabled firebase to be called as function
1 parent 3def9d5 commit 5f52e88

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dist/vuefire.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ return /******/ (function(modules) { // webpackBootstrap
254254
var init = function () {
255255
var bindings = this.$options.firebase
256256
if (!bindings) return
257+
if (typeof bindings === 'function') bindings = bindings.call(this)
257258
ensureRefs(this)
258259
for (var key in bindings) {
259260
bind(this, key, bindings[key])

dist/vuefire.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vuefire.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ function ensureRefs (vm) {
198198
var init = function () {
199199
var bindings = this.$options.firebase
200200
if (!bindings) return
201+
if (typeof bindings === 'function') bindings = bindings.call(this)
201202
ensureRefs(this)
202203
for (var key in bindings) {
203204
bind(this, key, bindings[key])

0 commit comments

Comments
 (0)