mstch/test/data/lambda/complex.js
Daniel Sipka eb98985815 import
2015-04-09 20:41:27 +02:00

20 lines
413 B
JavaScript

({
header: function () {
return "Colors";
},
item: [
{name: "red", current: true, url: "#Red"},
{name: "green", current: false, url: "#Green"},
{name: "blue", current: false, url: "#Blue"}
],
link: function () {
return this["current"] !== true;
},
list: function () {
return this.item.length !== 0;
},
empty: function () {
return this.item.length === 0;
}
})