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

Commit

Permalink
🔖 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Apr 5, 2017
1 parent dceb638 commit 2a4d362
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 51 deletions.
34 changes: 17 additions & 17 deletions dist/vuexfire.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@

Object.defineProperty(exports, '__esModule', { value: true });

var VUEXFIRE_OBJECT_VALUE = 'vuexfire/OBJECT_VALUE';
var VUEXFIRE_ARRAY_INITIALIZE = 'VUEXFIRE_ARRAY_INITIALIZE';
var VUEXFIRE_ARRAY_ADD = 'vuexfire/ARRAY_ADD';
var VUEXFIRE_ARRAY_CHANGE = 'vuexfire/ARRAY_CHANGE';
var VUEXFIRE_ARRAY_MOVE = 'vuexfire/ARRAY_MOVE';
var VUEXFIRE_ARRAY_REMOVE = 'vuexfire/ARRAY_REMOVE';
var VUEXFIRE_MUTATION = 'vuexfire/MUTATION';

/**
* Find the index for an object with given key.
*
Expand Down Expand Up @@ -87,6 +79,14 @@ function createRecord (snapshot) {
return res
}

var VUEXFIRE_OBJECT_VALUE = 'vuexfire/OBJECT_VALUE';
var VUEXFIRE_ARRAY_INITIALIZE = 'VUEXFIRE_ARRAY_INITIALIZE';
var VUEXFIRE_ARRAY_ADD = 'vuexfire/ARRAY_ADD';
var VUEXFIRE_ARRAY_CHANGE = 'vuexfire/ARRAY_CHANGE';
var VUEXFIRE_ARRAY_MOVE = 'vuexfire/ARRAY_MOVE';
var VUEXFIRE_ARRAY_REMOVE = 'vuexfire/ARRAY_REMOVE';
var VUEXFIRE_MUTATION = 'vuexfire/MUTATION';

var mutations = {};
mutations[VUEXFIRE_OBJECT_VALUE] = function (state, ref) {
var key = ref.key;
Expand Down Expand Up @@ -146,7 +146,7 @@ function bindAsObject (ref) {
type: VUEXFIRE_OBJECT_VALUE,
key: key,
record: createRecord(snapshot),
state: state
state: state,
});
}, cancelCallback);

Expand All @@ -165,7 +165,7 @@ function bindAsArray (ref) {
commit(VUEXFIRE_MUTATION, {
type: VUEXFIRE_ARRAY_INITIALIZE,
state: state,
key: key
key: key,
});
var onAdd = source.on('child_added', function (snapshot, prevKey) {
var array = state[key];
Expand All @@ -175,7 +175,7 @@ function bindAsArray (ref) {
state: state,
key: key,
index: index,
record: createRecord(snapshot)
record: createRecord(snapshot),
});
}, cancelCallback);

Expand All @@ -186,7 +186,7 @@ function bindAsArray (ref) {
type: VUEXFIRE_ARRAY_REMOVE,
state: state,
key: key,
index: index
index: index,
});
}, cancelCallback);

Expand All @@ -198,7 +198,7 @@ function bindAsArray (ref) {
state: state,
key: key,
index: index,
record: createRecord(snapshot)
record: createRecord(snapshot),
});
}, cancelCallback);

Expand All @@ -214,7 +214,7 @@ function bindAsArray (ref) {
key: key,
index: index,
newIndex: newIndex,
record: createRecord(snapshot)
record: createRecord(snapshot),
});
}, cancelCallback);

Expand All @@ -223,7 +223,7 @@ function bindAsArray (ref) {
child_added: onAdd,
child_changed: onChange,
child_removed: onRemove,
child_moved: onMove
child_moved: onMove,
}
}

Expand All @@ -248,7 +248,7 @@ function bind (ref) {
if (!binding) {
binding = {
sources: Object.create(null),
listeners: Object.create(null)
listeners: Object.create(null),
};
bindings.set(commit, binding);
}
Expand Down Expand Up @@ -276,7 +276,7 @@ function unbind (ref) {
if (!binding) {
binding = {
sources: Object.create(null),
listeners: Object.create(null)
listeners: Object.create(null),
};
bindings.set(commit, binding);
}
Expand Down
34 changes: 17 additions & 17 deletions dist/vuexfire.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
* (c) 2017 Eduardo San Martin Morote
* Released under the MIT License.
*/
var VUEXFIRE_OBJECT_VALUE = 'vuexfire/OBJECT_VALUE';
var VUEXFIRE_ARRAY_INITIALIZE = 'VUEXFIRE_ARRAY_INITIALIZE';
var VUEXFIRE_ARRAY_ADD = 'vuexfire/ARRAY_ADD';
var VUEXFIRE_ARRAY_CHANGE = 'vuexfire/ARRAY_CHANGE';
var VUEXFIRE_ARRAY_MOVE = 'vuexfire/ARRAY_MOVE';
var VUEXFIRE_ARRAY_REMOVE = 'vuexfire/ARRAY_REMOVE';
var VUEXFIRE_MUTATION = 'vuexfire/MUTATION';

/**
* Find the index for an object with given key.
*
Expand Down Expand Up @@ -83,6 +75,14 @@ function createRecord (snapshot) {
return res
}

var VUEXFIRE_OBJECT_VALUE = 'vuexfire/OBJECT_VALUE';
var VUEXFIRE_ARRAY_INITIALIZE = 'VUEXFIRE_ARRAY_INITIALIZE';
var VUEXFIRE_ARRAY_ADD = 'vuexfire/ARRAY_ADD';
var VUEXFIRE_ARRAY_CHANGE = 'vuexfire/ARRAY_CHANGE';
var VUEXFIRE_ARRAY_MOVE = 'vuexfire/ARRAY_MOVE';
var VUEXFIRE_ARRAY_REMOVE = 'vuexfire/ARRAY_REMOVE';
var VUEXFIRE_MUTATION = 'vuexfire/MUTATION';

var mutations = {};
mutations[VUEXFIRE_OBJECT_VALUE] = function (state, ref) {
var key = ref.key;
Expand Down Expand Up @@ -142,7 +142,7 @@ function bindAsObject (ref) {
type: VUEXFIRE_OBJECT_VALUE,
key: key,
record: createRecord(snapshot),
state: state
state: state,
});
}, cancelCallback);

Expand All @@ -161,7 +161,7 @@ function bindAsArray (ref) {
commit(VUEXFIRE_MUTATION, {
type: VUEXFIRE_ARRAY_INITIALIZE,
state: state,
key: key
key: key,
});
var onAdd = source.on('child_added', function (snapshot, prevKey) {
var array = state[key];
Expand All @@ -171,7 +171,7 @@ function bindAsArray (ref) {
state: state,
key: key,
index: index,
record: createRecord(snapshot)
record: createRecord(snapshot),
});
}, cancelCallback);

Expand All @@ -182,7 +182,7 @@ function bindAsArray (ref) {
type: VUEXFIRE_ARRAY_REMOVE,
state: state,
key: key,
index: index
index: index,
});
}, cancelCallback);

Expand All @@ -194,7 +194,7 @@ function bindAsArray (ref) {
state: state,
key: key,
index: index,
record: createRecord(snapshot)
record: createRecord(snapshot),
});
}, cancelCallback);

Expand All @@ -210,7 +210,7 @@ function bindAsArray (ref) {
key: key,
index: index,
newIndex: newIndex,
record: createRecord(snapshot)
record: createRecord(snapshot),
});
}, cancelCallback);

Expand All @@ -219,7 +219,7 @@ function bindAsArray (ref) {
child_added: onAdd,
child_changed: onChange,
child_removed: onRemove,
child_moved: onMove
child_moved: onMove,
}
}

Expand All @@ -244,7 +244,7 @@ function bind (ref) {
if (!binding) {
binding = {
sources: Object.create(null),
listeners: Object.create(null)
listeners: Object.create(null),
};
bindings.set(commit, binding);
}
Expand Down Expand Up @@ -272,7 +272,7 @@ function unbind (ref) {
if (!binding) {
binding = {
sources: Object.create(null),
listeners: Object.create(null)
listeners: Object.create(null),
};
bindings.set(commit, binding);
}
Expand Down
34 changes: 17 additions & 17 deletions dist/vuexfire.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
(factory((global.VuexFire = global.VuexFire || {})));
}(this, (function (exports) { 'use strict';

var VUEXFIRE_OBJECT_VALUE = 'vuexfire/OBJECT_VALUE';
var VUEXFIRE_ARRAY_INITIALIZE = 'VUEXFIRE_ARRAY_INITIALIZE';
var VUEXFIRE_ARRAY_ADD = 'vuexfire/ARRAY_ADD';
var VUEXFIRE_ARRAY_CHANGE = 'vuexfire/ARRAY_CHANGE';
var VUEXFIRE_ARRAY_MOVE = 'vuexfire/ARRAY_MOVE';
var VUEXFIRE_ARRAY_REMOVE = 'vuexfire/ARRAY_REMOVE';
var VUEXFIRE_MUTATION = 'vuexfire/MUTATION';

/**
* Find the index for an object with given key.
*
Expand Down Expand Up @@ -89,6 +81,14 @@ function createRecord (snapshot) {
return res
}

var VUEXFIRE_OBJECT_VALUE = 'vuexfire/OBJECT_VALUE';
var VUEXFIRE_ARRAY_INITIALIZE = 'VUEXFIRE_ARRAY_INITIALIZE';
var VUEXFIRE_ARRAY_ADD = 'vuexfire/ARRAY_ADD';
var VUEXFIRE_ARRAY_CHANGE = 'vuexfire/ARRAY_CHANGE';
var VUEXFIRE_ARRAY_MOVE = 'vuexfire/ARRAY_MOVE';
var VUEXFIRE_ARRAY_REMOVE = 'vuexfire/ARRAY_REMOVE';
var VUEXFIRE_MUTATION = 'vuexfire/MUTATION';

var mutations = {};
mutations[VUEXFIRE_OBJECT_VALUE] = function (state, ref) {
var key = ref.key;
Expand Down Expand Up @@ -148,7 +148,7 @@ function bindAsObject (ref) {
type: VUEXFIRE_OBJECT_VALUE,
key: key,
record: createRecord(snapshot),
state: state
state: state,
});
}, cancelCallback);

Expand All @@ -167,7 +167,7 @@ function bindAsArray (ref) {
commit(VUEXFIRE_MUTATION, {
type: VUEXFIRE_ARRAY_INITIALIZE,
state: state,
key: key
key: key,
});
var onAdd = source.on('child_added', function (snapshot, prevKey) {
var array = state[key];
Expand All @@ -177,7 +177,7 @@ function bindAsArray (ref) {
state: state,
key: key,
index: index,
record: createRecord(snapshot)
record: createRecord(snapshot),
});
}, cancelCallback);

Expand All @@ -188,7 +188,7 @@ function bindAsArray (ref) {
type: VUEXFIRE_ARRAY_REMOVE,
state: state,
key: key,
index: index
index: index,
});
}, cancelCallback);

Expand All @@ -200,7 +200,7 @@ function bindAsArray (ref) {
state: state,
key: key,
index: index,
record: createRecord(snapshot)
record: createRecord(snapshot),
});
}, cancelCallback);

Expand All @@ -216,7 +216,7 @@ function bindAsArray (ref) {
key: key,
index: index,
newIndex: newIndex,
record: createRecord(snapshot)
record: createRecord(snapshot),
});
}, cancelCallback);

Expand All @@ -225,7 +225,7 @@ function bindAsArray (ref) {
child_added: onAdd,
child_changed: onChange,
child_removed: onRemove,
child_moved: onMove
child_moved: onMove,
}
}

Expand All @@ -250,7 +250,7 @@ function bind (ref) {
if (!binding) {
binding = {
sources: Object.create(null),
listeners: Object.create(null)
listeners: Object.create(null),
};
bindings.set(commit, binding);
}
Expand Down Expand Up @@ -278,7 +278,7 @@ function unbind (ref) {
if (!binding) {
binding = {
sources: Object.create(null),
listeners: Object.create(null)
listeners: Object.create(null),
};
bindings.set(commit, binding);
}
Expand Down

0 comments on commit 2a4d362

Please sign in to comment.