Skip to content

Commit 40df7d4

Browse files
committed
button.Base: destroy() #4867
1 parent cd4390c commit 40df7d4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/collection/Base.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,11 +463,10 @@ class Base extends CoreBase {
463463
* Clears the map & items array before the super call
464464
*/
465465
destroy() {
466-
let me = this,
467-
items = me._items;
466+
let me = this;
468467

469-
items && items.splice(0, items.length);
470-
me.map && me.map.clear();
468+
me._items.splice(0, me._items.length);
469+
me.map.clear();
471470

472471
super.destroy();
473472
}

0 commit comments

Comments
 (0)