diff --git a/package.json b/package.json index 7ba9d462..6e5aa7f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rete", - "version": "1.0.0-beta.2", + "version": "1.0.0-beta.3", "description": "JavaScript framework", "main": "build/rete.min.js", "types": "src/index.d.ts", diff --git a/src/selected.js b/src/selected.js index 4861e205..1f23db00 100644 --- a/src/selected.js +++ b/src/selected.js @@ -14,9 +14,7 @@ export class Selected { } clear() { - this.each(item => { - this.remove(item); - }); + this.list = []; } remove(item) {