Skip to content

Commit

Permalink
[Build] 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyerburgh committed Aug 4, 2017
1 parent d4f7db4 commit 686cab6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dist/avoriaz.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,12 +553,14 @@ var VueWrapper = (function (Wrapper$$1) {
//

function addSlotToVm(vm, slotName, slotValue) {
var elem = slotValue.vNode || vm.$createElement(slotValue);
if (Array.isArray(vm.$slots[slotName])) {
vm.$slots[slotName].push(vm.$createElement(slotValue)); // eslint-disable-line no-param-reassign
vm.$slots[slotName].push(elem); // eslint-disable-line no-param-reassign
} else {
vm.$slots[slotName] = [vm.$createElement(slotValue)]; // eslint-disable-line no-param-reassign
vm.$slots[slotName] = [elem]; // eslint-disable-line no-param-reassign
}
}

function addSlots(vm, slots) {
Object.keys(slots).forEach(function (key) {
if (!(Array.isArray(slots[key])) && !(slots[key] !== null && typeof slots[key] === 'object')) {
Expand Down

0 comments on commit 686cab6

Please sign in to comment.