Updating js plugins
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
({
|
||||
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;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user