fix #459
This commit is contained in:
parent
dd49b0eb6b
commit
f58ceeb14c
1 changed files with 15 additions and 0 deletions
|
@ -41,6 +41,21 @@
|
||||||
catch (e){}
|
catch (e){}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
items: function (items) {
|
||||||
|
// give every item an id
|
||||||
|
this.items.forEach(function (item, index) {
|
||||||
|
item.id = index;
|
||||||
|
});
|
||||||
|
// split items into pages
|
||||||
|
this.itemPages = app.arrayToChunk(this.items, 4);
|
||||||
|
try{
|
||||||
|
this.simplifiedParent = JSON.stringify(this.items.map ( function(x){return x.attributes.playParams}));
|
||||||
|
console.log("simplifiedParent: " + this.simplifiedParent);
|
||||||
|
}
|
||||||
|
catch (e){}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
sayHello: function () {
|
sayHello: function () {
|
||||||
alert('Hello world!');
|
alert('Hello world!');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue