47 lines
825 B
JavaScript
47 lines
825 B
JavaScript
|
|
/*
|
||
|
|
|
||
|
|
Copyright (c) 2020, 2023, The Unified Company.
|
||
|
|
|
||
|
|
This code is part of Unify.
|
||
|
|
|
||
|
|
This program is free software; you can redistribute it and/or modify
|
||
|
|
it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE,
|
||
|
|
as published by the Free Software Foundation.
|
||
|
|
See the GNU AFFERO GENERAL PUBLIC LICENSE, for more details.
|
||
|
|
|
||
|
|
https://unifyjs.org
|
||
|
|
|
||
|
|
*/
|
||
|
|
|
||
|
|
import tools from '../unify/tools.js';
|
||
|
|
|
||
|
|
import baseCollection from '../unify/collection.js';
|
||
|
|
|
||
|
|
|
||
|
|
export default class collection extends baseCollection{
|
||
|
|
|
||
|
|
__className = "collection";
|
||
|
|
|
||
|
|
clearCollection() {
|
||
|
|
|
||
|
|
var rows = this.rows;
|
||
|
|
|
||
|
|
console.log("clear collection", rows, this);
|
||
|
|
|
||
|
|
for( var c = 0; c < rows.length; c++ ) {
|
||
|
|
|
||
|
|
var object = rows[c];
|
||
|
|
|
||
|
|
object.remove();
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
this.rows = new Array();
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|