feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

View File

@ -33,6 +33,9 @@ var Container = /*#__PURE__*/function (_Node) {
_proto.prepend = function prepend(selector) {
selector.parent = this;
this.nodes.unshift(selector);
for (var id in this.indexes) {
this.indexes[id]++;
}
return this;
};
_proto.at = function at(index) {
@ -76,7 +79,7 @@ var Container = /*#__PURE__*/function (_Node) {
var index;
for (var id in this.indexes) {
index = this.indexes[id];
if (oldIndex <= index) {
if (oldIndex < index) {
this.indexes[id] = index + 1;
}
}
@ -90,7 +93,7 @@ var Container = /*#__PURE__*/function (_Node) {
var index;
for (var id in this.indexes) {
index = this.indexes[id];
if (index <= oldIndex) {
if (index >= oldIndex) {
this.indexes[id] = index + 1;
}
}