feat: refactoring project
This commit is contained in:
7
node_modules/postcss-selector-parser/dist/selectors/container.js
generated
vendored
7
node_modules/postcss-selector-parser/dist/selectors/container.js
generated
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user