Skip to content

Commit 44b68a0

Browse files
committed
build latest
1 parent 3b5fa09 commit 44b68a0

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

dist/vuefire.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,18 @@ return /******/ (function(modules) { // webpackBootstrap
251251
}
252252
}
253253

254+
var init = function () {
255+
var bindings = this.$options.firebase
256+
if (!bindings) return
257+
ensureRefs(this)
258+
for (var key in bindings) {
259+
bind(this, key, bindings[key])
260+
}
261+
}
262+
254263
var VueFireMixin = {
255-
init: function () {
256-
var bindings = this.$options.firebase
257-
if (!bindings) return
258-
ensureRefs(this)
259-
for (var key in bindings) {
260-
bind(this, key, bindings[key])
261-
}
262-
},
264+
init: init, // 1.x
265+
beforeCreate: init, // 2.x
263266
beforeDestroy: function () {
264267
if (!this.$firebaseRefs) return
265268
for (var key in this.$firebaseRefs) {

dist/vuefire.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)