Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
🔖 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 3, 2017
1 parent 3bb85f9 commit 00147a3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions dist/vuexfire.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vuexfire v2.2.0
* vuexfire v2.3.0
* (c) 2017 Eduardo San Martin Morote
* Released under the MIT License.
*/
Expand Down Expand Up @@ -130,7 +130,6 @@ mutations[VUEXFIRE_ARRAY_CHANGE] = function (state, ref) {
mutations[VUEXFIRE_ARRAY_MOVE] = function (state, ref) {
var key = ref.key;
var index = ref.index;
var record = ref.record;
var newIndex = ref.newIndex;
var array = ref.array;

Expand Down Expand Up @@ -274,6 +273,7 @@ function bind (ref) {
var ref_options = ref.options;
var cancelCallback = ref_options.cancelCallback;
var readyCallback = ref_options.readyCallback;
var errorCallback = ref_options.errorCallback;
var wait = ref_options.wait; if ( wait === void 0 ) wait = true;

if (!isObject(source)) {
Expand All @@ -299,8 +299,8 @@ function bind (ref) {
// Support for SSR
// We have to listen for the readyCallback first so it
// gets called after the initializeArray callback
if (readyCallback) {
source.once('value', readyCallback);
if (readyCallback || errorCallback) {
source.once('value', readyCallback, errorCallback);
}

// Automatically detects if it should be bound as an array or as an object
Expand Down
8 changes: 4 additions & 4 deletions dist/vuexfire.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vuexfire v2.2.0
* vuexfire v2.3.0
* (c) 2017 Eduardo San Martin Morote
* Released under the MIT License.
*/
Expand Down Expand Up @@ -126,7 +126,6 @@ mutations[VUEXFIRE_ARRAY_CHANGE] = function (state, ref) {
mutations[VUEXFIRE_ARRAY_MOVE] = function (state, ref) {
var key = ref.key;
var index = ref.index;
var record = ref.record;
var newIndex = ref.newIndex;
var array = ref.array;

Expand Down Expand Up @@ -270,6 +269,7 @@ function bind (ref) {
var ref_options = ref.options;
var cancelCallback = ref_options.cancelCallback;
var readyCallback = ref_options.readyCallback;
var errorCallback = ref_options.errorCallback;
var wait = ref_options.wait; if ( wait === void 0 ) wait = true;

if (!isObject(source)) {
Expand All @@ -295,8 +295,8 @@ function bind (ref) {
// Support for SSR
// We have to listen for the readyCallback first so it
// gets called after the initializeArray callback
if (readyCallback) {
source.once('value', readyCallback);
if (readyCallback || errorCallback) {
source.once('value', readyCallback, errorCallback);
}

// Automatically detects if it should be bound as an array or as an object
Expand Down
8 changes: 4 additions & 4 deletions dist/vuexfire.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vuexfire v2.2.0
* vuexfire v2.3.0
* (c) 2017 Eduardo San Martin Morote
* Released under the MIT License.
*/
Expand Down Expand Up @@ -132,7 +132,6 @@ mutations[VUEXFIRE_ARRAY_CHANGE] = function (state, ref) {
mutations[VUEXFIRE_ARRAY_MOVE] = function (state, ref) {
var key = ref.key;
var index = ref.index;
var record = ref.record;
var newIndex = ref.newIndex;
var array = ref.array;

Expand Down Expand Up @@ -276,6 +275,7 @@ function bind (ref) {
var ref_options = ref.options;
var cancelCallback = ref_options.cancelCallback;
var readyCallback = ref_options.readyCallback;
var errorCallback = ref_options.errorCallback;
var wait = ref_options.wait; if ( wait === void 0 ) wait = true;

if (!isObject(source)) {
Expand All @@ -301,8 +301,8 @@ function bind (ref) {
// Support for SSR
// We have to listen for the readyCallback first so it
// gets called after the initializeArray callback
if (readyCallback) {
source.once('value', readyCallback);
if (readyCallback || errorCallback) {
source.once('value', readyCallback, errorCallback);
}

// Automatically detects if it should be bound as an array or as an object
Expand Down
4 changes: 2 additions & 2 deletions dist/vuexfire.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuexfire",
"version": "2.2.0",
"version": "2.3.0",
"description": "Opinionated firebase binding for vuex",
"main": "dist/vuexfire.common.js",
"module": "dist/vuexfire.esm.js",
Expand Down

0 comments on commit 00147a3

Please sign in to comment.