Skip to content

Commit ea56f18

Browse files
committed
[Container] Add silent parameter to add() method #8047
1 parent aa2630e commit ea56f18

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/container/Base.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,12 @@ class Container extends Component {
122122
/**
123123
* Inserts an item or array of items at the last index
124124
* @param {Object|Array} item
125+
* @param {Boolean} [silent=false]
125126
* @returns {Neo.component.Base|Neo.component.Base[]}
126127
*/
127-
add(item) {
128+
add(item, silent=false) {
128129
let me = this;
129-
return me.insert(me.items ? me.items.length : 0, item)
130+
return me.insert(me.items ? me.items.length : 0, item, silent)
130131
}
131132

132133
/**

0 commit comments

Comments
 (0)