mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-10 19:16:20 +00:00
add List.clearItems method. fixes #40.
This commit is contained in:
parent
9a9611636a
commit
fe08f9e819
@ -4224,6 +4224,10 @@ List.prototype.removeItem = function(child) {
|
||||
}
|
||||
};
|
||||
|
||||
List.prototype.clearItems = function() {
|
||||
return this.setItems([]);
|
||||
};
|
||||
|
||||
List.prototype.setItems = function(items) {
|
||||
var items = items.slice()
|
||||
, original = this.items.slice()
|
||||
|
Loading…
x
Reference in New Issue
Block a user