diff --git a/dist/vuefire.js b/dist/vuefire.js index f76e424e..6e74f60b 100644 --- a/dist/vuefire.js +++ b/dist/vuefire.js @@ -278,8 +278,7 @@ return /******/ (function(modules) { // webpackBootstrap } var VueFireMixin = { - init: init, // 1.x - beforeCreate: init, // 2.x + created: init, // 1.x and 2.x beforeDestroy: function () { if (!this.$firebaseRefs) return for (var key in this.$firebaseRefs) { diff --git a/dist/vuefire.min.js b/dist/vuefire.min.js index 73ea8d50..f17be0b3 100644 --- a/dist/vuefire.min.js +++ b/dist/vuefire.min.js @@ -1 +1 @@ -!function(e,i){"object"==typeof exports&&"object"==typeof module?module.exports=i():"function"==typeof define&&define.amd?define([],i):"object"==typeof exports?exports.VueFire=i():e.VueFire=i()}(this,function(){return function(e){function i(r){if(n[r])return n[r].exports;var t=n[r]={exports:{},id:r,loaded:!1};return e[r].call(t.exports,t,t.exports,i),t.loaded=!0,t.exports}var n={};return i.m=e,i.c=n,i.p="",i(0)}([function(e,i){function n(e){return"function"==typeof e.key?e.key():e.key}function r(e){return"function"==typeof e.ref?e=e.ref():"object"==typeof e.ref&&(e=e.ref),e}function t(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){var i=e.val(),r=t(i)?i:{".value":i};return r[".key"]=n(e),r}function s(e,i){for(var n=0;n